sklearn.ensemble.AdaBoostClassifier может принимать LogisticRegression в качестве base_estimator?
делал так:
from sklearn.ensemble import AdaBoostRegressor
from sklearn.model_selection import RandomizedSearchCV
# AdaBoost regression
lr = LogisticRegression()
boost = AdaBoostRegressor(base_estimator=lr,
random_state=0)
lr_params = {'C': np.arange(0.5, 1, 0.1)}
clf = GridSearchCV(boost, lr_params)
clf.fit(X_train, y_train)
Ошибка:
ValueError: Invalid parameter C for estimator AdaBoostRegressor(base_estimator=LogisticRegression(), random_state=0). Check the list of available parameters with estimator.get_params().keys().