def binary_classification_exp_object_out_of_order(method="random"): backend = 'sklearn' dataset = helpers.load_outcome_not_last_column_dataset() d = dice_ml.Data(dataframe=dataset, continuous_features=['Numerical'], outcome_name='Outcome') ML_modelpath = helpers.get_custom_dataset_modelpath_pipeline_binary() m = dice_ml.Model(model_path=ML_modelpath, backend=backend) exp = dice_ml.Dice(d, m, method=method) return exp
def genetic_binary_classification_exp_object(): backend = 'sklearn' dataset = helpers.load_custom_testing_dataset_binary() d = dice_ml.Data(dataframe=dataset, continuous_features=['Numerical'], outcome_name='Outcome') ML_modelpath = helpers.get_custom_dataset_modelpath_pipeline_binary() m = dice_ml.Model(model_path=ML_modelpath, backend=backend) exp = dice_ml.Dice(d, m, method='genetic') return exp
def sklearn_binary_classification_model_interface(): ML_modelpath = helpers.get_custom_dataset_modelpath_pipeline_binary() m = dice_ml.Model(model_path=ML_modelpath, backend='sklearn', model_type='classifier') return m