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
I tried to use AdaBoostClassifer and i succeded in the scenario that i dont use the 'base_estimator' parameter. But when i try to set 'base_estimator' it fails. I tried two ways:
1)
'sklearn.ensemble.AdaBoostClassifier': {
'base_estimator': {
'sklearn.naive_bayes.GaussianNB': {
}
}
},
Which leads to: RuntimeError: A pipeline has not yet been optimized. Please call fit() first.
2 and a half)
'sklearn.ensemble.AdaBoostClassifier': {
'base_estimator': ['sklearn.naive_bayes.GaussianNB'] or ['sklearn.naive_bayes.GaussianNB()']
}
Which both lead to: RuntimeError: There was an error in the TPOT optimization process. This could be because the data was not formatted properly, or because data for a regression problem was provided to the TPOTClassifier object. Please make sure you passed the data to TPOT correctly.
But if use AdaBoostClassifier with any parameter except base_estimator it runs properly.
'sklearn.ensemble.AdaBoostClassifier': {
'param1': [something],
'param2': [something else]
}
Thanks you,
Achilleas.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue here. I just posted a PR #751 to fix this issue and we will release a new version of TPOT soon with this fix. For now, there are two work-arounds:
install the PR with fix via the command below. But it is noted that it is based on development branch.
I tried to use AdaBoostClassifer and i succeded in the scenario that i dont use the 'base_estimator' parameter. But when i try to set 'base_estimator' it fails. I tried two ways:
1)
'sklearn.ensemble.AdaBoostClassifier': {
'base_estimator': {
'sklearn.naive_bayes.GaussianNB': {
}
}
},
Which leads to: RuntimeError: A pipeline has not yet been optimized. Please call fit() first.
2 and a half)
'sklearn.ensemble.AdaBoostClassifier': {
'base_estimator': ['sklearn.naive_bayes.GaussianNB'] or ['sklearn.naive_bayes.GaussianNB()']
}
Which both lead to: RuntimeError: There was an error in the TPOT optimization process. This could be because the data was not formatted properly, or because data for a regression problem was provided to the TPOTClassifier object. Please make sure you passed the data to TPOT correctly.
But if use AdaBoostClassifier with any parameter except base_estimator it runs properly.
'sklearn.ensemble.AdaBoostClassifier': {
'param1': [something],
'param2': [something else]
}
Thanks you,
Achilleas.
The text was updated successfully, but these errors were encountered: