Get startedGet started for free

Calculating true negative rate

Use confusionMatrix(p_class, test[["Class"]]) to calculate a confusion matrix on the test set.

What is the test set true negative rate (or specificity) of this model (rounded to the nearest percent)?

This exercise is part of the course

Machine Learning with caret in R

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise