alibi.saving
Constants
TYPE_CHECKING
TYPE_CHECKINGTYPE_CHECKING: bool = Falsebool(x) -> bool
Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.
NOT_SUPPORTED
NOT_SUPPORTEDNOT_SUPPORTED: list = ['DistributedAnchorTabular', 'CEM', 'Counterfactual', 'CounterfactualProto']Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
NumpyEncoder
NumpyEncoderInherits from: JSONEncoder
Methods
default
defaultdefault(obj)obj
Functions
load_explainer
load_explainerload_explainer(path: Union[str, os.PathLike], predictor) -> ExplainerLoad an explainer from disk.
path
Union[str, os.PathLike]
Path to a directory containing the saved explainer.
predictor
Model or prediction function used to originally initialize the explainer.
Returns
Type:
Explainer
save_explainer
save_explainersave_explainer(explainer: Explainer, path: Union[str, os.PathLike]) -> NoneSave an explainer to disk. Uses the dill module.
explainer
Explainer
Explainer instance to save to disk.
path
Union[str, os.PathLike]
Path to a directory. A new directory will be created if one does not exist.
Returns
Type:
None
Last updated
Was this helpful?

