Display performance metrics by class for a classification model
fdPanelClassificationMetricsByClass(actual, predicted, vertical = TRUE, cutoffs = c(0, 0.6, 0.75, 1)) computeClassificationMetricsByClass(actual, predicted, vertical = TRUE)
Other classification: fdPanelClassificationMetrics
library(rpart) fit <- rpart(Species ~ ., data = iris) actual <- iris$Species predicted <- predict(fit, type = 'class') computeClassificationMetricsByClass(actual = actual, predicted = predicted) if (interactive()){ fdPanelClassificationMetricsByClass(actual = actual, predicted = predicted) %>% fdPreview("Classification Metrics") }