1. 学习
  2. /
  3. 课程
  4. /
  5. Extreme Gradient Boosting with XGBoost

Connected

练习

Evaluating model quality

It's now time to begin evaluating model quality.

Here, you will compare the RMSE and MAE of a cross-validated XGBoost model on the Ames housing data. As in previous exercises, all necessary modules have been pre-loaded and the data is available in the DataFrame df.

说明 1 / 共 2 个

undefined XP
  • 1
    • Perform 4-fold cross-validation with 5 boosting rounds and "rmse" as the metric.
    • Extract and print the final boosting round RMSE.
  • 2

    Now, adapt your code to compute the "mae" instead of the "rmse".