Jamal Ahmed
Jamal Ahmed

Reputation: 667

How can i combine xgboost with adaboost?

I have combined random forest with adaboost as

clf = AdaBoostClassifier(n_estimators=10, base_estimator=RandomForestClassifier(n_estimators=10,max_depth=20))

now i want to combine adaboost with xgboost and i have tried like this:

from sklearn.ensemble import AdaBoostClassifier
from xgboost import XGBClassifier

clf = AdaBoostClassifier(base_estimator=XGBClassifier(eval_metric='mlogloss'))

and it is not working correctly. How to do this?

Upvotes: -1

Views: 228

Answers (1)

Enki Enkidu
Enki Enkidu

Reputation: 1

use would just use it like this

import lib1, lib2, lib3, lib4, lib5

Upvotes: -1

Related Questions