Serializer

You can save trained models to disk and restore them later with save and load functions.

replay.model_handler.save(model, path)

Save fitted model to disk as a folder

Parameters
  • model (BaseRecommender) – Trained recommender

  • path (str) – destination where model files will be stored

Returns

replay.model_handler.load(path)

Load saved model from disk

Parameters

path (str) – path to model folder

Returns

Restored trained model