Interfaces
BASECFMODULE
CLASS relax.methods.base.BaseCFModule ()
Base CF Explanation Module.
BASECFMODULE.NAME
relax.methods.base.BaseCFModule.name ()
Name of the CF Explanation Module.
BASECFMODULE.DATA_MODULE
relax.methods.base.BaseCFModule.data_module ()
Binded DataModule
.
BASECFMODULE.GENERATE_CFS
relax.methods.base.BaseCFModule.generate_cfs (X, pred_fn=None)
Abstract method to generate counterfactuals
.. deprecated:: 0.1.4
BASECFMODULE.HOOK_DATA_MODULE
relax.methods.base.BaseCFModule.hook_data_module (data_module)
Bind TabularDataModule
to self._data_module
.
BASEPARAMETRICCFMODULE
CLASS relax.methods.base.BaseParametricCFModule ()
Helper class that provides a standard way to create an ABC using inheritance.
BASEPARAMETRICCFMODULE.TRAIN
relax.methods.base.BaseParametricCFModule.train (datamodule, t_configs=None, pred_fn=None)
BASEPREDFNCFMODULE
CLASS relax.methods.base.BasePredFnCFModule ()
Base class of CF Module with a predictive module.
<string>:1: DeprecationWarning: jax.numpy.DeviceArray is deprecated. Use jax.Array.
BASEPREDFNCFMODULE.PRED_FN
relax.methods.base.BasePredFnCFModule.pred_fn (X)