plot_confusion_matrix: Plot_confusion_matrix

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

plot_confusion_matrixR Documentation

Plot_confusion_matrix

Description

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

Usage

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


## Not run: 

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


## End(Not run)


fastai documentation built on June 22, 2024, 11:15 a.m.