SmartPredictor Loader Function¶
This function allows users to load SmartPredictor object saved into a pickle.
load_smartpredictor module
- shapash.utils.load_smartpredictor.load_smartpredictor(path: str) shapash.explainer.smart_predictor.SmartPredictor[source]¶
load_smartpredictor allows Shapash users to load SmartPredictor Object already saved into a pickle.
- Parameters
path (str) – File path of the pickle file.
Example
>>> predictor = load_smartpredictor('path_to_pkl/predictor.pkl')
Notes
If a sidecar manifest
path + ".manifest.json"is present (predictors saved with shapash >= 2.10), provenance checks are run: the schema fingerprint and the shapash major version must match the running environment, otherwise aValueErroris raised. Minor shapash and model-framework version skews emit aUserWarning. Predictors saved without a manifest still load, with aDeprecationWarning.