Description Usage Arguments Examples
Interactive performance plots for classification models.
1 | fdPlotClassificationPerformance(perf, digits = 3, title = NULL)
|
perf |
an object of class |
digits |
number of digits to display |
title |
optional title |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | library(flightdeck)
library(ROCR)
data(ROCR.simple)
pred <- prediction(ROCR.simple$predictions, ROCR.simple$labels)
perf <- performance(pred, 'tpr', 'fpr')
rocChart <- fdPlotClassificationPerformance(
performance(pred, "tpr", "fpr"), digits = 2
)
precisionRecallChart <- fdPlotClassificationPerformance(
performance(pred, "prec", "rec"), digits = 2
)
# Example 1
fdTabsetPanel(selected = makeHtmlId('ROC Chart'),
fdTabPanel('ROC Chart', rocChart),
fdTabPanel('Precision vs. Recall', precisionRecallChart)
) %>%
fdColumn(width = 12) %>%
fdPreview(wrap = 'row')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.