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
AutoSklearn2Classifier issues being pickle-ed #905
Comments
AutoSK2 Classifier promptly throws an error after starting. Guess it is the same problem as the OP... Seems like the tool is trying to pickle a selector into a system library folder, instead of into my current folder Example code:
Error output:
|
Thanks a lot @23pointsNorth and @Atharex for reporting these issues. I can confirm both issues and we'll work on fixing these. |
The error encountered by @23pointsNorth was due to python's standard However, just switching library will not be enough. Another error will come up: The fix to that subsequent error is in #955, by making the |
* store the selector in the home directory of the user following https://specifications.freedesktop.org/basedir-spec/ This means that by default the selector is put into ~/.cache/auto-sklearn/ * make the AutoSklearn2Classifier picklable by replacing closures with callable classes * the initial issue using Lock objects does no longer exist as they were removed when we introduced dask for parallelism
* store the selector in the home directory of the user following https://specifications.freedesktop.org/basedir-spec/ This means that by default the selector is put into ~/.cache/auto-sklearn/ * make the AutoSklearn2Classifier picklable by replacing closures with callable classes * the initial issue using Lock objects does no longer exist as they were removed when we introduced dask for parallelism
Closing this as it is fixed by #976. |
Describe the bug
I've been testing the
AutoSklearnClassifier
andAutoSklearn2Classifier
classifiers.Using the v1, I get expected results in training the model. However, on saving, it crashes with the following details:
From what I've gathered, the model cannot be pickled.
To Reproduce
// Make a classifier using:
from autosklearn.classification import AutoSklearnClassifier
import joblib
model = AutoSklearnClassifier()
model.fit(X,y)
joblib.dump(model, "model.pkl")
Expected behavior
Both v1 and v2 classifiers to be able to fit, save and re-load.
Actual behavior, stacktrace or logfile
See above
Environment and installation:
Please give details about your installation:
Versions in docker container:
sklearn: 0.22.2.post1
auto-sklearn: 0.8.0
python: 3.6
The text was updated successfully, but these errors were encountered: