dice_ml.utils package¶
Subpackages¶
Submodules¶
dice_ml.utils.exception module¶
Exceptions for the package.
dice_ml.utils.helpers module¶
This module containts helper functions to load data and get meta deta.
-
class
dice_ml.utils.helpers.
DataTransfomer
(func=None, kw_args=None)[source]¶ Bases:
object
A class to transform data based on user-defined function to get predicted outcomes. This class calls FunctionTransformer of scikit-learn internally (https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.FunctionTransformer.html).
-
dice_ml.utils.helpers.
get_base_gen_cf_initialization
(data_interface, encoded_size, cont_minx, cont_maxx, margin, validity_reg, epochs, wm1, wm2, wm3, learning_rate)[source]¶
-
dice_ml.utils.helpers.
load_adult_income_dataset
(only_train=True)[source]¶ Loads adult income dataset from https://archive.ics.uci.edu/ml/datasets/Adult and prepares the data for data analysis based on https://rpubs.com/H_Zhu/235617
- Return adult_data
returns preprocessed adult income dataset.