shap.models.Model

class shap.models.Model(model=None)

This is the superclass of all models.

__init__(model=None)

Wrap a callable model as a SHAP Model object.

Methods

__init__([model])

Wrap a callable model as a SHAP Model object.

load(in_file[, instantiate])

save(out_file)

Save the model to the given file stream.

save(out_file)

Save the model to the given file stream.