sklearn 的 Adaboost predict_proba 如何在内部工作?
how does sklearn's Adaboost predict_proba works internally?
我正在使用 sklearn 的 'predict_proba()' 来预测样本属于 Adaboost 分类器中每个估计量的类别的概率。
from sklearn.ensemble import AdaBoostClassifier
clf = AdaBoostClassifier(n_estimators=50)
for estimator in clf.estimators_:
print estimator.predict_proba(X_test)
Adaboost 像这样实现其 predict_proba():
https://github.com/scikit-learn/scikit-learn/blob/bb39b49/sklearn/ensemble/weight_boosting.py#L733
DecisionTreeClassifier 是 sklearn 的 Adaboost 分类器的基础估计器。
DecisionTreeClassifier 像这样实现其 predict_proba():
https://github.com/scikit-learn/scikit-learn/blob/bb39b49/sklearn/tree/tree.py#L549
谁能告诉我Adaboost的predict_proba()内部是怎么计算概率的?是否有任何相同主题的参考资料可以帮助我?请通知我。提前致谢。
也许 Adaboost 的 "how it works" 部分有用?
我正在使用 sklearn 的 'predict_proba()' 来预测样本属于 Adaboost 分类器中每个估计量的类别的概率。
from sklearn.ensemble import AdaBoostClassifier
clf = AdaBoostClassifier(n_estimators=50)
for estimator in clf.estimators_:
print estimator.predict_proba(X_test)
Adaboost 像这样实现其 predict_proba():
https://github.com/scikit-learn/scikit-learn/blob/bb39b49/sklearn/ensemble/weight_boosting.py#L733
DecisionTreeClassifier 是 sklearn 的 Adaboost 分类器的基础估计器。 DecisionTreeClassifier 像这样实现其 predict_proba():
https://github.com/scikit-learn/scikit-learn/blob/bb39b49/sklearn/tree/tree.py#L549
谁能告诉我Adaboost的predict_proba()内部是怎么计算概率的?是否有任何相同主题的参考资料可以帮助我?请通知我。提前致谢。
也许 Adaboost 的 "how it works" 部分有用?