shap.maskers.Masker

class shap.maskers.Masker

This is the superclass of all maskers.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

load(in_file[, instantiate])

This is meant to be overridden by subclasses and called with super.

save(out_file)

Save the model to the given file stream.

classmethod load(in_file, instantiate=True)

This is meant to be overridden by subclasses and called with super.

We return constructor argument values when not being instantiated. Since there are no constructor arguments for the Serializable class we just return an empty dictionary.

save(out_file)

Save the model to the given file stream.