python - how does sklearn's Adaboost predict_proba works internally? -
i'm using sklearn's 'predict_proba()' predict probability of sample belonging category each estimators in adaboost classifier.
from sklearn.ensemble import adaboostclassifier clf = adaboostclassifier(n_estimators=50) estimator in clf.estimators_: print estimator.predict_proba(x_test) adaboost implements predict_proba() this:
https://github.com/scikit-learn/scikit-learn/blob/bb39b49/sklearn/ensemble/weight_boosting.py#l733
decisiontreeclassifier sklearn's base estimator adaboost classifier. decisiontreeclassifier implements predict_proba() this:
https://github.com/scikit-learn/scikit-learn/blob/bb39b49/sklearn/tree/tree.py#l549
anyone kindly tell me how predict_proba() of adaboost internally calculates probability? there references same topic can me ? please inform me. in advance.
maybe "how works" section of adaboost of use?
Comments
Post a Comment