# 결정 트리 및 앙상블 (Data Science & ML) > Decision Trees, Random Forest, Gradient Boosting, XGBoost, 하이퍼파라미터 튜닝, feature importance - 24 면접 질문 - Mid-Level - [면접 질문: Data Science & ML](https://sharpskill.dev/ko/technologies/data-science/interview-questions.md) ## 1. Machine Learning에서 decision tree란 무엇입니까? **답변** Decision tree는 계층적 결정 규칙에 따라 데이터를 분할하여 예측을 수행하는 Machine Learning 모델입니다. 각 내부 노드는 feature에 대한 테스트를 나타내고, 각 분기는 테스트 결과를 나타내며, 각 리프는 최종 예측을 나타냅니다. 이 모델은 직관적이고 해석이 쉬워서 결정에 영향을 미치는 요인을 이해하는 데 탁월한 선택입니다. ## 2. scikit-learn에서 classification tree의 split 품질을 측정하기 위해 기본적으로 어떤 기준이 사용됩니까? **답변** Gini index는 scikit-learn에서 classification tree에 대한 기본 기준입니다. 클래스 분포에 따라 무작위로 분류될 경우 요소가 잘못 분류될 확률을 계산하여 노드의 불순도를 측정합니다. Gini가 0이면 순수한 노드(단일 클래스)를 의미하고, Gini가 높을수록 클래스의 다양성이 크다는 것을 나타냅니다. ## 3. split 기준으로서 Gini index와 엔트로피의 주요 차이점은 무엇입니까? **답변** Gini index와 엔트로피는 일반적으로 매우 유사한 트리를 생성하지만, Gini는 로그 계산이 필요하지 않아 계산이 약간 더 빠릅니다. 정보 이론에 기반한 엔트로피는 때때로 약간 더 균형 잡힌 split을 생성할 수 있습니다. 실제로는 두 가지 선택이 모델 성능에 큰 영향을 미치는 경우가 거의 없습니다. ## 21개 추가 질문 이용 가능 - decision tree에서 pruning이란 무엇입니까? - scikit-learn에서 decision tree의 최대 깊이를 제어하는 하이퍼파라미터는 무엇입니까? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 Data Science & ML 면접 주제 - [Python 기초](https://sharpskill.dev/ko/technologies/data-science/interview-questions/python-basics.md): 25개 질문, Junior - [Python 객체 지향 프로그래밍](https://sharpskill.dev/ko/technologies/data-science/interview-questions/python-oop.md): 20개 질문, Junior - [Python 데이터 구조](https://sharpskill.dev/ko/technologies/data-science/interview-questions/python-data-structures.md): 20개 질문, Junior - [Git 기초](https://sharpskill.dev/ko/technologies/data-science/interview-questions/git-fundamentals.md): 18개 질문, Junior - [SQL 기초](https://sharpskill.dev/ko/technologies/data-science/interview-questions/sql-basics.md): 20개 질문, Junior - [NumPy 기초](https://sharpskill.dev/ko/technologies/data-science/interview-questions/numpy-fundamentals.md): 22개 질문, Junior - [Pandas 기초](https://sharpskill.dev/ko/technologies/data-science/interview-questions/pandas-basics.md): 22개 질문, Junior - [Jupyter & Google Colab](https://sharpskill.dev/ko/technologies/data-science/interview-questions/jupyter-colab.md): 16개 질문, Junior - [SQL Joins 및 고급 쿼리](https://sharpskill.dev/ko/technologies/data-science/interview-questions/sql-joins-advanced.md): 22개 질문, Mid-Level - [Pandas 고급](https://sharpskill.dev/ko/technologies/data-science/interview-questions/pandas-advanced.md): 24개 질문, Mid-Level - [Matplotlib & Seaborn을 활용한 시각화](https://sharpskill.dev/ko/technologies/data-science/interview-questions/matplotlib-seaborn.md): 20개 질문, Mid-Level - [Plotly로 만드는 인터랙티브 시각화](https://sharpskill.dev/ko/technologies/data-science/interview-questions/plotly-interactive.md): 18개 질문, Mid-Level - [기술 통계](https://sharpskill.dev/ko/technologies/data-science/interview-questions/statistics-descriptive.md): 20개 질문, Mid-Level - [추론 통계학](https://sharpskill.dev/ko/technologies/data-science/interview-questions/statistics-inferential.md): 24개 질문, Mid-Level - [Web Scraping](https://sharpskill.dev/ko/technologies/data-science/interview-questions/web-scraping.md): 18개 질문, Mid-Level - [BigQuery & Cloud Data](https://sharpskill.dev/ko/technologies/data-science/interview-questions/bigquery-cloud.md): 18개 질문, Mid-Level - [Feature Engineering](https://sharpskill.dev/ko/technologies/data-science/interview-questions/feature-engineering.md): 22개 질문, Mid-Level - [지도 머신러닝: 회귀](https://sharpskill.dev/ko/technologies/data-science/interview-questions/ml-supervised-regression.md): 24개 질문, Mid-Level - [지도 머신러닝: 분류](https://sharpskill.dev/ko/technologies/data-science/interview-questions/ml-supervised-classification.md): 24개 질문, Mid-Level - [비지도 ML](https://sharpskill.dev/ko/technologies/data-science/interview-questions/ml-unsupervised.md): 22개 질문, Mid-Level - [ML 파이프라인 및 검증](https://sharpskill.dev/ko/technologies/data-science/interview-questions/ml-pipelines-validation.md): 22개 질문, Mid-Level - [시계열 및 예측](https://sharpskill.dev/ko/technologies/data-science/interview-questions/time-series-forecasting.md): 22개 질문, Mid-Level - [Deep Learning 기초](https://sharpskill.dev/ko/technologies/data-science/interview-questions/deep-learning-fundamentals.md): 24개 질문, Senior - [TensorFlow & Keras](https://sharpskill.dev/ko/technologies/data-science/interview-questions/tensorflow-keras.md): 22개 질문, Senior - [CNN 및 이미지 분류](https://sharpskill.dev/ko/technologies/data-science/interview-questions/cnn-image-classification.md): 24개 질문, Senior - [RNN 및 시퀀스](https://sharpskill.dev/ko/technologies/data-science/interview-questions/rnn-sequences.md): 22개 질문, Senior - [Transformers 및 Attention](https://sharpskill.dev/ko/technologies/data-science/interview-questions/transformers-attention.md): 24개 질문, Senior - [NLP 및 Hugging Face](https://sharpskill.dev/ko/technologies/data-science/interview-questions/nlp-huggingface.md): 24개 질문, Senior - [GenAI 및 LangChain](https://sharpskill.dev/ko/technologies/data-science/interview-questions/genai-langchain.md): 24개 질문, Senior - [MLOps 및 배포](https://sharpskill.dev/ko/technologies/data-science/interview-questions/mlops-deployment.md): 24개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/data-science/interview-questions/ml-trees-ensembles