def regression_exp_object(method="random"): backend = 'sklearn' dataset = helpers.load_custom_testing_dataset_regression() d = dice_ml.Data(dataframe=dataset, continuous_features=['Numerical'], outcome_name='Outcome') ML_modelpath = helpers.get_custom_dataset_modelpath_pipeline_regression() m = dice_ml.Model(model_path=ML_modelpath, backend=backend, model_type='regressor') exp = dice_ml.Dice(d, m, method=method) return exp
def sklearn_regression_model_interface(): ML_modelpath = helpers.get_custom_dataset_modelpath_pipeline_regression() m = dice_ml.Model(model_path=ML_modelpath, backend='sklearn', model_type='regression') return m