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
How save model in file? #5
Comments
Hi, |
Hi, |
This is not the same as the thread creator asked for. You can achieve something similar by using |
auto-sklearn supports pickle with commit 9415f38 |
I'm not able to get pickle to work with commit 9415f38. When I install the development branch + the refactor/cleanupcomponents branch and run the test/test_automl/test_pickle.py file I still get the following error: |
Sorry for the late reply. I think there was an error on my side. Can you please try the latest version of the development branch? That should work. Is there any reason why you want to use refactor/cleanupcomonents? |
Sorry, my bad. Of course you wanted to use the branch because the commit was in there. Please only use the development branch now. |
Thank you! It works on the development branch. My mistake for using the incorrect branch. |
Hi guys. I've tried 9415f38 to save model. File "automl_classification.py", line 73, in main
pickle.dump(automl, f)
_pickle.PicklingError: Can't pickle <class 'smac.runhistory.runhistory.RunKey'>: attribute lookup RunKey on smac.runhistory.runhistory failed Does anyone know why it doesn't work? |
See issue #138. A fix is under construction. |
A clean hack for saving the best model:
|
When you save the models using show_models() like namankumar lists, how do you re-load and execute the predict() from the pickle file? When I pickle.dump(classifierobj) I get a MemoryError but I assume that's the correct way to reload classifierobj to call predict(). |
Yes, that's the correct way to do this. I cannot explain when/why this happens as it never occured to me. Could you please provide some information about the data you're using (number of features and number of data points, sparse or not) and your system (especially RAM and bit)? |
Hi all,
I took example (from docs), and i want to save classifier to file.
But if:
I got
Can i save model in file?
The text was updated successfully, but these errors were encountered: