Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scikit learn random forest

from sklearn.ensemble import BaggingClassifier
from sklearn.neighbors import KNeighborsClassifier
bagging = BaggingClassifier(KNeighborsClassifier(),
                            max_samples=0.5, max_features=0.5)
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged: #scikit #learn #random #forest
ADD COMMENT
Topic
Name
1+2 =