You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From a quick search through the code and the API docs, I haven't found any recommendations for optimal saving and loading of models after fitting. From my understanding, scikit-learn recommends saving via pickle or joblib, which naturally works for himalaya models as well.
Alternatively, this demo from the himalaya docs mentions that saved hyper-parameters can be used to reconstruct the full model. Along this same vein, I've found that saving model coefficients as .npy, .npz or .hdf is much faster, and takes up much less space, than full serialization via joblib.
Is there any interest in incorporating this functionality into himalaya? If so, but no one else wants to, I can potentially take a pass at it.
The text was updated successfully, but these errors were encountered:
A functionality like that would be much appreciated! I'm not a big fan of dumping models with pickle/joblib because they are rarely future-proof, and as you describe, the files produced are way too large. I think that dumping the minimal set of hyperparameters and parameters would be better. The functionality should also deal with different backends, see e.g. this issue: #52
Big fan of this project!
From a quick search through the code and the API docs, I haven't found any recommendations for optimal saving and loading of models after fitting. From my understanding, scikit-learn recommends saving via pickle or joblib, which naturally works for himalaya models as well.
Alternatively, this demo from the himalaya docs mentions that saved hyper-parameters can be used to reconstruct the full model. Along this same vein, I've found that saving model coefficients as .npy, .npz or .hdf is much faster, and takes up much less space, than full serialization via joblib.
Is there any interest in incorporating this functionality into himalaya? If so, but no one else wants to, I can potentially take a pass at it.
The text was updated successfully, but these errors were encountered: