(self, params, abnormal_list=None)
The following lines work only in fitting process
The following lines work only in fitting process
The following lines work only in fitting process
def __init__(self, params, abnormal_list=None):
        super().__init__(params, abnormal_list)
        """The following lines work only in fitting process"""
        if isinstance(params, HeteroFeatureBinningParam):
            self.optimal_param = params.optimal_binning_param
            self.optimal_param.adjustment_factor = params.adjustment_factor
            self.optimal_param.max_bin = params.bin_num
            if math.ceil(1.0 / self.optimal_param.max_bin_pct) > self.optimal_param.max_bin:
                raise ValueError("Arguments logical error, ceil(1.0/max_bin_pct) "
                                 "should be smaller or equal than bin_num")

        self.adjustment_factor = params.adjustment_factor
        self.event_total = None
        self.non_event_total = None
        self.bucket_lists = {}
def __init__ ( self , params , abnormal_list = None ) : super ( ) . __init__ ( params , abnormal_list ) if isinstance ( params , HeteroFeatureBinningParam ) : self . optimal_param = params . optimal_binning_param self . optimal_param . adjustment_factor = params . adjustment_factor self . optimal_param . max_bin = params . bin_num if math . ceil ( 1.0 / self . optimal_param . max_bin_pct ) > self . optimal_param . max_bin : raise ValueError ( "Arguments logical error, ceil(1.0/max_bin_pct) " "should be smaller or equal than bin_num" ) self . adjustment_factor = params . adjustment_factor self . event_total = None self . non_event_total = None self . bucket_lists = { }