1. 学习
  2. /
  3. 课程
  4. /
  5. Feature Engineering in R

Connected

练习

Customize your model assessment

Creating custom assessment functions is quite convenient when iterating through various models. The metric_set() function from the yardstickpackage can help you to achieve this.

Define a function that returns roc_auc, accuracy, sens(sensitivity) and specificity spec(specificity) and use it to assess your model.

The augmented data frame lr_augis already loaded and ready to go.

说明

100 XP
  • Define a custom assessment function that returns roc_auc, accuracy, sens, and spec.
  • Assess your model using your new function on lr_augto obtain the metrics you just chose.