(self, data_instance, handle_missing_value=False)
return rs
convert bin index to real value
convert bin index to real value
convert bin index to real value
def convert_feature_to_bin(self, data_instance, handle_missing_value=False):
        """
        convert bin index to real value
        """
        LOGGER.info("convert feature to bins")
        param_obj = FeatureBinningParam(bin_num=self.bin_num, error=self.binning_error)

        if handle_missing_value:
            self.binning_obj = self.binning_class(param_obj, abnormal_list=[NoneType()],)
        else:
            self.binning_obj = self.binning_class(param_obj)

        self.binning_obj.fit_split_points(data_instance)
        rs = self.binning_obj.convert_feature_to_bin(data_instance)
        LOGGER.info("convert feature to bins over")
        return rs
def convert_feature_to_bin ( self , data_instance , handle_missing_value = False ) : LOGGER . info ( "convert feature to bins" ) param_obj = FeatureBinningParam ( bin_num = self . bin_num , error = self . binning_error ) if handle_missing_value : self . binning_obj = self . binning_class ( param_obj , abnormal_list = [ NoneType ( ) ] , ) else : self . binning_obj = self . binning_class ( param_obj ) self . binning_obj . fit_split_points ( data_instance ) rs = self . binning_obj . convert_feature_to_bin ( data_instance ) LOGGER . info ( "convert feature to bins over" ) return rs