Model seçimi: topluluk (ensemble) modelleri

Python ile Machine Learning Mülakat Sorularını Pratik Etme

Lisa Stuart

Data Scientist

Bootstrapping

Örnekleme (Bootstrapping)

1 https://medium.com/@rrfd/boosting-bagging-and-stacking-ensemble-methods-with-sklearn-and-mlens-a455c0c982de
Python ile Machine Learning Mülakat Sorularını Pratik Etme

Random forest

Orman

1 https://www.sca.com/en/about-us/our-forest/
Python ile Machine Learning Mülakat Sorularını Pratik Etme

Gradient Boosting

Gradient boosting

1 https://blog.bigml.com/2017/03/14/introduction-to-boosted-trees/
Python ile Machine Learning Mülakat Sorularını Pratik Etme

RF vs GB

parametre Random Forest Gradient Boosting
n_estimators 10 100
criterion gini (veya entropy) friedman_mse
max_depth None 3
learning_rate Yok 0.1
1 https://scikit-learn.org/stable/modules/classes.html#module-sklearn.ensemble
Python ile Machine Learning Mülakat Sorularını Pratik Etme

Fonksiyonlar

Fonksiyon döndürür
sklearn.ensemble.RandomForestClassifier Random Forest
sklearn.ensemble.GradientBoostingClassifier Gradient Boosted Model
sklearn.metrics.accuracy_score eğitilmiş model doğruluğu
sklearn.metrics.confusion_matrix(y_test,y_pred) karmaşıklık matrisi
sklearn.metrics.precision_score(y_test,y_pred) kesinlik (precision)
sklearn.metrics.recall_score(y_test,y_pred) duyarlılık (recall)
sklearn.metrics.f1_score(y_test,y_pred) f1 skoru
Python ile Machine Learning Mülakat Sorularını Pratik Etme

Hadi pratik yapalım!

Python ile Machine Learning Mülakat Sorularını Pratik Etme

Preparing Video For Download...