You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I applied the codes in #719 and #524. It worked well when the ensemble size was 50. However, there was some thing wrong when the ensemble size was 1.
automl=autosklearn.classification.AutoSklearnClassifier(
time_left_for_this_task=120,
include_preprocessors=['select_percentile_classification'],
include_estimators=['randomforest],
ensemble_size=1,
resampling_strategy='cv',
resampling_strategy_arguments={'folds':5},
)
automl.fit(X_train,y_train)
forweight, modelinautoml.get_models_with_weights():
print(tuple(model.steps[-2]))
print(tuple(model.steps[-2])[-1].choice.preprocessor.scores_)
print(tuple(model.steps[-2])[-1].choice.preprocessor.percentile)
('feature_preprocessor', <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoiceobjectat0x7ff0e3123630>)
AttributeErrorTraceback (mostrecentcalllast)
<ipython-input-154-6172a5b19273>in<module>5print(tuple(model.steps[-2]))
6# Obtain the scores of the current feature selector---->7print(tuple(model.steps[-2])[-1].choice.preprocessor.scores_)
8# Obtain the percentile configured by Auto-sklearn9print(tuple(model.steps[-2])[-1].choice.preprocessor.percentile)
AttributeError: 'SelectPercentileClassification'objecthasnoattribute'preprocessor'
The text was updated successfully, but these errors were encountered:
From a brief check the issue is rather the examples don't work with cross-validation. Could you kindly check if the error goes away if you disable cross-validation?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for the next 7 days. Thank you for your contributions.
We should document that when using CV, the models returned are actually VotingClassifier/Regressor which means that issue #719#524 don't work as expected.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I applied the codes in #719 and #524. It worked well when the ensemble size was 50. However, there was some thing wrong when the ensemble size was 1.
The text was updated successfully, but these errors were encountered: