All our Data Science projects include bite-sized activities to test your knowledge and practice in an environment with constant feedback.
All our activities include solutions with explanations on how they work and why we chose them.
Use the code presented previously.
Use the code presented previously.
You must train the XGBoost and tune hyperparameters model using the training data and evaluate the model using the testing data.
Store the model in the variable model
, the prediction on the testing data in y_pred
and the testing evalaution metrics in test_accuracy
, test_precision
, and test_recall
.
To achive this task, you should obtain a precision of 70%.
Note: The expected evaluation metrics for a simple problem varies depending on the specifics of the problem and data.