(self, **kwargs)
Constructor for Holoclean
        :param kwargs: arguments for HoloClean
Constructor for Holoclean
        :param kwargs: arguments for HoloClean
Constructor for Holoclean : param kwargs : arguments for HoloClean
def __init__(self, **kwargs):
        """
        Constructor for Holoclean
        :param kwargs: arguments for HoloClean
        """

        # Initialize default execution arguments
        arg_defaults = {}
        for arg, opts in arguments:
            if 'directory' in arg[0]:
                arg_defaults['directory'] = opts['default']
            else:
                arg_defaults[opts['dest']] = opts['default']

        # Initialize default execution flags
        for arg, opts in flags:
            arg_defaults[opts['dest']] = opts['default']

        # check env vars
        for arg, opts in arguments:
            # if env var is set use that
            if opts["metavar"] and opts["metavar"] in os.environ.keys():
                logging.debug(
                    "Overriding {} with env varible {} set to {}".format(
                        opts['dest'],
                        opts["metavar"],
                        os.environ[opts["metavar"]])
                )
                arg_defaults[opts['dest']] = os.environ[opts["metavar"]]

        # Override defaults with manual flags
        for key in kwargs:
            arg_defaults[key] = kwargs[key]

        # Initialize additional arguments
        for (arg, default) in arg_defaults.items():
            setattr(self, arg, kwargs.get(arg, default))

        # Init empty session collection
        self.session = Session(arg_defaults)
def __init__ ( self , * * kwargs ) : # Initialize default execution arguments arg_defaults = { } for arg , opts in arguments : if 'directory' in arg [ 0 ] : arg_defaults [ 'directory' ] = opts [ 'default' ] else : arg_defaults [ opts [ 'dest' ] ] = opts [ 'default' ] # Initialize default execution flags for arg , opts in flags : arg_defaults [ opts [ 'dest' ] ] = opts [ 'default' ] # check env vars for arg , opts in arguments : # if env var is set use that if opts [ "metavar" ] and opts [ "metavar" ] in os . environ . keys ( ) : logging . debug ( "Overriding {} with env varible {} set to {}" . format ( opts [ 'dest' ] , opts [ "metavar" ] , os . environ [ opts [ "metavar" ] ] ) ) arg_defaults [ opts [ 'dest' ] ] = os . environ [ opts [ "metavar" ] ] # Override defaults with manual flags for key in kwargs : arg_defaults [ key ] = kwargs [ key ] # Initialize additional arguments for ( arg , default ) in arg_defaults . items ( ) : setattr ( self , arg , kwargs . get ( arg , default ) ) # Init empty session collection self . session = Session ( arg_defaults )