classifierplots: The main functions you want are 'classifierplots' or...

Description Usage Arguments Details Examples

View source: R/classifier_plots.R

Description

The main functions you want are classifierplots or classifierplots_folder.

Produce a suit of classifier diagnostic plots

Usage

1
classifierplots(test.y, pred.prob)

Arguments

test.y

List of know labels on the test set

pred.prob

List of probability predictions on the test set

Details

example.png

Examples

1
2
3
4
## Not run: 
 classifierplots(example_predictions$test.y, example_predictions$pred.prob)

## End(Not run)

Example output

Loading required package: ggplot2
Loading required package: data.table
[1] "Calculating AUC ..."
[1] "(AUC) Sorting data ..."
[1] "(AUC) Calculating ranks ..."
[1] "AUC: 90.5603213507625"
[1] "Bootstrapping ROC curves"
[1] "Eval AUC"
[1] "Producing ROC plot"
[1] "Generating score density plot"
TableGrob (2 x 4) "arrange": 8 grobs
  z     cells    name                           grob
1 1 (1-1,1-1) arrange                 gtable[layout]
2 2 (1-1,2-2) arrange                 gtable[layout]
3 3 (1-1,3-3) arrange                 gtable[layout]
4 4 (1-1,4-4) arrange rastergrob[GRID.rastergrob.11]
5 5 (2-2,1-1) arrange                 gtable[layout]
6 6 (2-2,2-2) arrange                 gtable[layout]
7 7 (2-2,3-3) arrange                 gtable[layout]
8 8 (2-2,4-4) arrange                 gtable[layout]
Warning messages:
1: Removed 40 rows containing missing values (geom_text). 
2: Removed 41 rows containing missing values (geom_text). 
3: Removed 43 rows containing missing values (geom_text). 

classifierplots documentation built on Jan. 13, 2021, 5:23 p.m.