Skip to content

Optimized Model Saving to/Loading from Disk #53

@MShinkle

Description

@MShinkle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions