I have been learning sklearn.ensemble, for example, clf =AdaBoostClassifier(svm.LinearSVC(),n_estimators=10,max_samples=0.1,)
My question is whether I can use different classifiers as the base_estimator
, because base_estimator
can only accept one Object
, if I want to use LogisticRegression()
to continue classifying instances that are misclassified by LinearSVC()
, what should I do? Is it possible?
AdaBoostClassifier
can only train homogeneous estimators. scikit-learn does not support training heterogeneous ensembles. You might want to have a look at pyensemble .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.