Comments (13)
A clean hack for saving the best model:
x = automl.show_models()
results = {"ensemble": x}
pickle.dump(results, open('fname.pickle','wb'))
from auto-sklearn.
Hi,
at the moment it is not possible to save the found models to a file. I will leave this issue open to remind us of adding this feature.
from auto-sklearn.
Hi,
Here is nice approach to saving model:
http://rhiever.github.io/tpot/examples/IRIS_Example/
from auto-sklearn.
This is not the same as the thread creator asked for. You can achieve something similar by using AutoSklearnClassifier.show_models()
, which prints you the members of the final ensemble, together with their weight. So far, this is only possible because of the rather simple ensemble considered and will possibly vanish in the near future.
from auto-sklearn.
auto-sklearn supports pickle with commit 9415f38
from auto-sklearn.
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: TypeError: Pickling an AuthenticationString object is disallowed for security reasons
. Any ideas what I'm doing wrong? Or how I could help make pickle work here?
from auto-sklearn.
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?
from auto-sklearn.
Sorry, my bad. Of course you wanted to use the branch because the commit was in there. Please only use the development branch now.
from auto-sklearn.
Thank you! It works on the development branch. My mistake for using the incorrect branch.
from auto-sklearn.
Hi guys. I've tried 9415f38 to save model.
But I got this error:
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?
from auto-sklearn.
See issue #138. A fix is under construction.
from auto-sklearn.
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().
from auto-sklearn.
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)?
from auto-sklearn.
Related Issues (20)
- [Question] How to get the pre-processed data used by `auto-sklearn` to train a model?
- Install auto-sklearn in Colab HOT 1
- [Question] Is there a way to configure n_configs of the SMAC's module ?
- calling model.show_models() give error as
- calling model.show_models() give error HOT 2
- Set Preprocess = None, but still get SimpleImputer problem; besides some warnings alongside
- ValueError: (' Dummy prediction failed with run state StatusType.CRASHED and additional output HOT 1
- [Question] TimeSeriesSplit to use auto-sklearn for time series doesn't work
- [Question] What kind of Hyperparameter optimisation technique does AutoSklearn use?
- [Question] How do I fix this issue? HOT 20
- [Question] Where does the Bayesian Optimisation is working for Hyperparameter search? HOT 16
- [Question] Sum of ensemble weights is not equal to 1. How can that happen? HOT 2
- [Question] Time Frame of performance_over_time plot less than actual training time
- [Question] Feature selection
- [Question] How to solve the warning 'Configuration *** not found'? HOT 1
- [Question] Where are the models stored?
- [Question] Clustering Optimization
- ValueError: Unable to configure handler 'distributed_logfile' HOT 2
- Unable to install autosklearn in kaggle HOT 1
- Installation problem. Cythonizing. error: metadata-generation-failed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-sklearn.