Python'da Ensemble Yöntemleri
Román de las Heras
Data Scientist, Appodeal
base_estimatorn_estimatorsoob_scoreest_bag.oob_score_max_samples: her tahminci için çekilecek örnek sayısı.max_features: her tahminci için çekilecek özellik sayısı.bootstrap: örneklerin yerine koymalı çekilip çekilmeyeceği.Sınıflandırma
from sklearn.ensemble import RandomForestClassifier
clf_rf = RandomForestClassifier(
# parameters...
)
Regresyon
from sklearn.ensemble import RandomForestRegressor
reg_rf = RandomForestRegressor(
# parameters...
)
Bagging parametreleri:
n_estimatorsmax_featuresoob_scoreAğaça özgü parametreler:
max_depthmin_samples_splitmin_samples_leafclass_weight ("balanced")
Python'da Ensemble Yöntemleri