Skip to content

Saving models using h5 files for safety #16875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
naklecha opened this issue Apr 8, 2020 · 3 comments
Closed

Saving models using h5 files for safety #16875

naklecha opened this issue Apr 8, 2020 · 3 comments
Labels

Comments

@naklecha
Copy link

naklecha commented Apr 8, 2020

Is there a way I can save Sklearn models into h5 files as they are safer than pickle files or joblib files. The issue with pickle files is that a malicious program can easily be introduced while loading pickle files whereas h5 files only contain data and will be very easy to load models even from untrusted sources.

@cmarmo
Copy link
Contributor

cmarmo commented Jul 20, 2020

Hi @naklecha, thanks for your interest in scikit-learn. HDF5 format is not used in scikit-learn and its specific support is unlikely to be added to the library.
I will close this issue as the mailing list or stack overflow channels are more appropriate for questions than the issue tracker.
Feel free to reach the user community there. Thanks.

@cmarmo cmarmo closed this as completed Jul 20, 2020
@jnothman
Copy link
Member

jnothman commented Jul 21, 2020 via email

@cmarmo
Copy link
Contributor

cmarmo commented Jul 21, 2020

@jnothman, I will have a look to the current documentation and propose something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants