Saving and Describing a Model

Saving and Describing a Model: Saving and Loading a Model, Model Cards.

Updated

  1. Saving and Loading a Model (Journeyman): joblib.dump writes a trained model to a file and joblib.load brings it back with the same guesses, as long as you save the whole pipeline, load it with the same scikit-learn version it was saved with, and only ever load files you or someone you trust made, because loading one can run any code inside it.
  2. Model Cards (Journeyman): A model card is a short document that travels with a trained model and says what it's for, what it must not be used for, what data it learned from, how well it does overall and for each group, its limits, and when it was trained, as Mitchell and colleagues proposed in Model Cards for Model Reporting (2019).