НачатьНачать бесплатно

Measure final model performance

Now its time to calculate the test performance of your final model (logistic regression). Here you will use the held out testing data to characterize the performance you would expect from this model when it is applied to new data.

Это упражнение является частью курса

Machine Learning in the Tidyverse

Посмотреть курс

Инструкции к упражнению

  • Use table() to compare the test_actual and test_predicted vectors.
  • Calculate the test accuracy.
  • Calculate the test precision.
  • Calculate the test recall.
  • After this exercise, you are done with the course! If you enjoyed the material, feel free to send Dmitriy a thank you via Twitter. He'll appreciate it. Tweet to Dmitriy

Интерактивное практическое упражнение

Попробуйте выполнить это упражнение, дополнив этот пример кода.

# Compare the actual & predicted performance visually using a table
___

# Calculate the test accuracy
___

# Calculate the test precision
___

# Calculate the test recall
___
Редактировать и запускать код