मॉडल चयन: एन्सेम्बल मॉडल

Python में Machine Learning इंटरव्यू प्रश्नों का अभ्यास

Lisa Stuart

Data Scientist

बूटस्ट्रैपिंग

बूटस्ट्रैपिंग

1 https://medium.com/@rrfd/boosting-bagging-and-stacking-ensemble-methods-with-sklearn-and-mlens-a455c0c982de
Python में Machine Learning इंटरव्यू प्रश्नों का अभ्यास

रैंडम फॉरेस्ट

जंगल

1 https://www.sca.com/en/about-us/our-forest/
Python में Machine Learning इंटरव्यू प्रश्नों का अभ्यास

ग्रेडिएंट बूस्टिंग

ग्रेडिएंट बूस्टिंग

1 https://blog.bigml.com/2017/03/14/introduction-to-boosted-trees/
Python में Machine Learning इंटरव्यू प्रश्नों का अभ्यास

RF बनाम GB

parameter रैंडम फॉरेस्ट ग्रेडिएंट बूस्टिंग
n_estimators 10 100
criterion gini (या entropy) friedman_mse
max_depth None 3
learning_rate N/A 0.1
1 https://scikit-learn.org/stable/modules/classes.html#module-sklearn.ensemble
Python में Machine Learning इंटरव्यू प्रश्नों का अभ्यास

फंक्शंस

Function रिटर्न करता है
sklearn.ensemble.RandomForestClassifier रैंडम फॉरेस्ट
sklearn.ensemble.GradientBoostingClassifier ग्रेडिएंट बूस्टेड मॉडल
sklearn.metrics.accuracy_score प्रशिक्षित मॉडल की accuracy
sklearn.metrics.confusion_matrix(y_test,y_pred) confusion matrix
sklearn.metrics.precision_score(y_test,y_pred) precision
sklearn.metrics.recall_score(y_test,y_pred) recall
sklearn.metrics.f1_score(y_test,y_pred) f1 स्कोर
Python में Machine Learning इंटरव्यू प्रश्नों का अभ्यास

अभ्यास करते हैं!

Python में Machine Learning इंटरव्यू प्रश्नों का अभ्यास

Preparing Video For Download...