-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
When adding NoPreprocessing component to auto-sklearn, the lassoregression can run successfully, while the abess regression crashed #1661
Comments
Hi, |
Ok, here is my code for debugging:
The error: File ~/miniconda3/envs/p38/lib/python3.8/site-packages/autosklearn/estimators.py:1587, in AutoSklearnRegressor.fit(self, X, y, X_test, y_test, feat_type, dataset_name) File ~/miniconda3/envs/p38/lib/python3.8/site-packages/autosklearn/estimators.py:540, in AutoSklearnEstimator.fit(self, **kwargs) File ~/miniconda3/envs/p38/lib/python3.8/site-packages/autosklearn/automl.py:2394, in AutoMLRegressor.fit(self, X, y, X_test, y_test, feat_type, dataset_name, only_return_configuration_space, load_models) File ~/miniconda3/envs/p38/lib/python3.8/site-packages/autosklearn/automl.py:962, in AutoML.fit(self, X, y, task, X_test, y_test, feat_type, dataset_name, only_return_configuration_space, load_models, is_classification) File ~/miniconda3/envs/p38/lib/python3.8/site-packages/autosklearn/automl.py:899, in AutoML.fit(self, X, y, task, X_test, y_test, feat_type, dataset_name, only_return_configuration_space, load_models, is_classification) File ~/miniconda3/envs/p38/lib/python3.8/site-packages/autosklearn/smbo.py:552, in AutoMLSMBO.run_smbo(self) File ~/miniconda3/envs/p38/lib/python3.8/site-packages/smac/facade/smac_ac_facade.py:720, in SMAC4AC.optimize(self) File ~/miniconda3/envs/p38/lib/python3.8/site-packages/smac/optimizer/smbo.py:273, in SMBO.run(self) File ~/miniconda3/envs/p38/lib/python3.8/site-packages/smac/runhistory/runhistory.py:257, in RunHistory.add(self, config, cost, time, status, instance_id, seed, budget, starttime, endtime, additional_info, origin, force_update) TypeError: Configuration to add to the runhistory must not be None I would be very appreciateful as I have been troubled by this problem for a long time. |
Thanks for the extra info. I ran your code on the diabetes dataset from sklearn (not sure what you used), and your custom feature/data preprocessors worked fine as expected. You said that abess regressor runs without problems if you only include your regressor in the search. What you could try, is take a look at my answer to another raised issue of yours at #1660, where I also explain how to find the runhistory file. You should take a look at the sampled configurations there, and see if there are any errors attached to the runs. I would expect, that you would find some errors raised by abess there. If you do find errors raised by abess there, then this issue should be closed, since it is not related to autosklearn. Hope this will help you solve it. |
Describe the bug
When adding NoPreprocessing component to auto-sklearn, the lassoregression can run successfully, while the abessregression crashed, both lassoregression and abessregression are written by my own, and they can both successfully run when NoPreprocessing not added. I wonder what is the problem that abessregression crashed when adding NoPreprocessing. The following are my snippest for reference:
Environment and installation:
Please give details about your installation:
The text was updated successfully, but these errors were encountered: