plot_confusion_matrix: Plot_confusion_matrix

Description Usage Arguments Value Examples

View source: R/test.R View source: R/stats.R

Description

Plot the confusion matrix, with 'title' and using 'cmap'.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_confusion_matrix(
  interp,
  normalize = FALSE,
  title = "Confusion matrix",
  cmap = "Blues",
  norm_dec = 2,
  plot_txt = TRUE,
  figsize = c(4, 4),
  ...,
  dpi = 120
)

Arguments

interp

interpretation object

normalize

normalize

title

title

cmap

color map

norm_dec

norm dec

plot_txt

plot text

figsize

plot size

...

additional parameters to pass

dpi

dots per inch

Value

None

Examples

1
2
3
4
5
6
7
## Not run: 

interp = ClassificationInterpretation_from_learner(model)
interp %>% plot_confusion_matrix(dpi = 90,figsize = c(6,6))


## End(Not run)

fastai documentation built on Oct. 25, 2021, 5:08 p.m.