问题描述
我正在使用sklearn的'predict_proba()'来预测Adaboost分类器中每个估计量属于某个类别的样本的概率.
I'm using sklearn's 'predict_proba()' to predict the probability of a sample belonging to a category for each estimators in Adaboost classifier.
from sklearn.ensemble import AdaBoostClassifier
clf = AdaBoostClassifier(n_estimators=50)
for estimator in clf.estimators_:
print estimator.predict_proba(X_test)
Adaboost像这样实现自己的Forecast_proba():
Adaboost implements its predict_proba() like this:
DecisionTreeClassifier是sklearn用于Adaboost分类器的基本估计器.DecisionTreeClassifier如下实现其predict_proba():
DecisionTreeClassifier is sklearn's base estimator for Adaboost classifier.DecisionTreeClassifier implements its predict_proba() like this:
有人告诉我Adaboost的predict_proba()是如何内部计算该概率的吗?是否有相同主题的参考文献可以帮助我?请通知我.预先感谢.
Anyone kindly tell me how predict_proba() of Adaboost internally calculates the probability? Is there any references with the same topic which can help me ? Please inform me. Thanks in advance.
推荐答案
也许是 Adaboost 有用吗?
这篇关于sklearn的Adaboost Forecast_proba如何在内部运作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!