【问题标题】:how to access the python scikit learning code for Random Forest Classifier, Ada Boost Classifier, Extra Trees Classifier如何访问 Random Forest Classifier、Ada Boost Classifier、Extra Trees Classifier 的 python scikit 学习代码
【发布时间】:2014-07-17 02:26:15
【问题描述】:

是否可以使用以下代码激活随机森林分类器、Ada Boost 分类器、额外树分类器的 python 代码,这些都是 python scikit 学习方法:-

from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier, ExtraTreesClassifier

我只需要写一篇评论并且需要知道这些分类算法是如何工作的。

【问题讨论】:

    标签: python classification scikit-learn random-forest adaboost


    【解决方案1】:

    查看this link 以获取有关如何从 git-hub 获取最新资源的说明。它是开源的,因此获取源代码没有问题。像这样:

    git clone git://github.com/scikit-learn/scikit-learn.git
    

    具体检查Git repository 中的ensemble/forest.pyensemble/weight_boosting.py 文件。

    【讨论】:

    • 谢谢@engineero,我刚去了git_link,只有RandomForestClassifier的抽象方法。如何找到包含其他 2 的后端逻辑的代码。
    • 这三个都可以在我的答案中列出的两个文件中的 Github 上找到。
    猜你喜欢
    • 2019-02-05
    • 2015-09-19
    • 2015-07-12
    • 1970-01-01
    • 2011-01-17
    • 2017-09-27
    • 2012-03-22
    • 2018-02-07
    • 2021-09-18
    相关资源
    最近更新 更多