Model persistence#

For model persistence we suggest you use joblib, since it stores numpy arrays much more efficiently:

from joblib import dump, load
dump(dmm, "dmm_model.joblib")

You may load the model as follows:

dmm = load("dmm_model.joblib")

Note

For a comprehensive overview of limitations, consult Sklearn’s documentation