BSkyConfusionMatrix: Confusion matrix

BSkyConfusionMatrixR Documentation

Confusion matrix

Description

Creates a confusion matrix by cross-tabulating the observed and predicted classes with associated statistics.

Usage

BSkyConfusionMatrix(
  modelname,
  showConfusionMatrix = FALSE,
  predictions,
  datasetname
)

Arguments

modelname

a model object for which confusion matrix is desired.

predictions

an object that is returned as a result of predict() call.

datasetname

is the current datasetname using which we want to make predictions.

showCofusionMatrix

logical, if TRUE the confusion matrix is generated (if it applies), if FALSE, confusion matrix is not generated.

Value

Displays the confusion matrix using the function confusionMatrix in the package caret


BlueSkyStatistics/BlueSky documentation built on Jan. 29, 2025, 4:15 p.m.