모델 선택: 앙상블 모델

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 vs GB

매개변수 랜덤 포레스트 그래디언트 부스팅
n_estimators 10 100
criterion gini (또는 entropy) friedman_mse
max_depth None 3
learning_rate 해당 없음 0.1
1 https://scikit-learn.org/stable/modules/classes.html#module-sklearn.ensemble
Python으로 연습하는 Machine Learning 면접 질문

함수

함수 반환값
sklearn.ensemble.RandomForestClassifier 랜덤 포레스트
sklearn.ensemble.GradientBoostingClassifier 그래디언트 부스팅 모델
sklearn.metrics.accuracy_score 학습된 모델 정확도
sklearn.metrics.confusion_matrix(y_test,y_pred) 혼동 행렬
sklearn.metrics.precision_score(y_test,y_pred) 정밀도
sklearn.metrics.recall_score(y_test,y_pred) 재현율
sklearn.metrics.f1_score(y_test,y_pred) F1 점수
Python으로 연습하는 Machine Learning 면접 질문

연습해 봅시다!

Python으로 연습하는 Machine Learning 면접 질문

Preparing Video For Download...