def __init__(self, node, **kwargs): super(CVBestSearchRefit, self).__init__(estimator=None) ####????? score = kwargs.pop("score") if "score" in kwargs else 'y/test/score_recall_mean' arg_max = kwargs.pop("arg_max") if "arg_max" in kwargs else True from epac.workflow.splitters import CV #methods = Methods(*tasks) self.cv = CV(node=node, reducer=ClassificationReport(keep=False), **kwargs) self.score = score self.arg_max = arg_max
def __init__(self, node, **kwargs): super(CVBestSearchRefit, self).__init__(wrapped_node=None) #### 'y/test/score_recall_mean' default_score = "y" + conf.SEP + \ conf.TEST + conf.SEP + \ conf.SCORE_RECALL_MEAN score = kwargs.pop("score") if "score" in kwargs else default_score arg_max = kwargs.pop("arg_max") if "arg_max" in kwargs else True from epac.workflow.splitters import CV #methods = Methods(*tasks) self.cv = CV(node=node, reducer=ClassificationReport(keep=False), **kwargs) self.score = score self.arg_max = arg_max