shap.maskers.Composite

class shap.maskers.Composite(*maskers)

This merges several maskers for different inputs together into a single composite masker.

This is not yet implemented.

__init__(*maskers)

Methods

__init__(*maskers)

data_transform(*args)

Transform the argument

load(in_file[, instantiate])

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

mask_shapes(*args)

The shape of the masks we expect.

save(out_file)

Save the model to the given file stream.

shape(*args)

Compute the shape of this masker as the sum of all the sub masker shapes.

data_transform(*args)

Transform the argument

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.

mask_shapes(*args)

The shape of the masks we expect.

save(out_file)

Save the model to the given file stream.

shape(*args)

Compute the shape of this masker as the sum of all the sub masker shapes.