(self)
this interface gives evaluation type. Will be called by validation strategy
this interface gives evaluation type. Will be called by validation strategy
this interface gives evaluation type . Will be called by validation strategy
def get_metrics_param(self):
        """
        this interface gives evaluation type. Will be called by validation strategy
        """
        if self.task_type == consts.CLASSIFICATION:
            if self.num_classes == 2:
                return EvaluateParam(eval_type="binary",
                                     pos_label=self.classes_[1], metrics=self.metrics)
            else:
                return EvaluateParam(eval_type="multi", metrics=self.metrics)
        else:
            return EvaluateParam(eval_type="regression", metrics=self.metrics)
def get_metrics_param ( self ) : if self . task_type == consts . CLASSIFICATION : if self . num_classes == 2 : return EvaluateParam ( eval_type = "binary" , pos_label = self . classes_ [ 1 ] , metrics = self . metrics ) else : return EvaluateParam ( eval_type = "multi" , metrics = self . metrics ) else : return EvaluateParam ( eval_type = "regression" , metrics = self . metrics )