Search code examples
pythonclassificationscikit-learnrandom-forestadaboost

how to access the python scikit learning code for Random Forest Classifier, Ada Boost Classifier, Extra Trees Classifier


Is it possible to access the python code for Random Forest Classifier, Ada Boost Classifier, Extra Trees Classifier which are python scikit learning methodes can be activated using below code:-

from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier, ExtraTreesClassifier

i just need to write a review and need to know how these classification algorithms works.


Solution

  • Check out this link for instructions on how to get the latest sources from git-hub. It is open source, so there is no issue getting the source. Like this:

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

    Specifically check out the ensemble/forest.py and ensemble/weight_boosting.py files from the Git repository.