Machine Learning Algorithm Quizzes
XGBoost
Question 1
XGBoost (Extreme Gradient Boosting) is a powerful implementation of which type of ensemble learning method?
Question 2
Which line of code correctly imports the XGBoost model for a classification task?
Question 3
In Gradient Boosting, new trees are built sequentially to correct the __________ of the previous ensemble of trees.
Question 4
Which of the following are key hyperparameters used to control overfitting in an XGBoost model?
Question 5
What is the primary role of the learning_rate (also known as eta) hyperparameter in XGBoost?
Question 6
To prevent a model from training for too long, XGBoost's scikit-learn API allows you to use __________ which stops the training process if a validation metric does not improve for a specified number of rounds.
Question 7
What are some of the well-known advantages of using XGBoost?
Question 8
What is a fundamental difference between how Random Forest and Gradient Boosting (like XGBoost) build their trees?
End of Quiz
Your final score is: 0 / 0
List of Questions
Question 1: XGBoost (Extreme Gradient Boosting) is a powerful implementation of which type of ensemble learning method?
Answers: Boosting.
Question 2: Which line of code correctly imports the XGBoost model for a classification task?
Answers: from xgboost import XGBClassifier.
Question 3: Which of the following are key hyperparameters used to control overfitting in an XGBoost model?
Answers: learning_rate (eta), max_depth, subsample.
Question 4: What is the primary role of the `learning_rate` (also known as `eta`) hyperparameter in XGBoost?
Answers: It scales the contribution of each new tree, effectively shrinking its impact..
Question 5: What are some of the well-known advantages of using XGBoost?
Answers: High predictive performance, often winning machine learning competitions., Internal handling of missing values., Fast training speed due to parallelization and optimization..
Question 6: What is a fundamental difference between how Random Forest and Gradient Boosting (like XGBoost) build their trees?
Answers: Random Forest builds trees in parallel and independently; XGBoost builds them sequentially..