fdPlotClassificationPerformance: Interactive performance plots for classification models.

Description Usage Arguments Examples

Description

Interactive performance plots for classification models.

Usage

1

Arguments

perf

an object of class performance

digits

number of digits to display

title

optional title

Examples

 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')

alteryx/flightdeck documentation built on May 12, 2019, 1:39 a.m.