Learn R Programming

VectorForgeML (version 0.1.0)

confusion_matrix: Confusion Matrix

Description

Computes confusion matrix.

Usage

confusion_matrix(y_true, y_pred)

Value

matrix

Arguments

y_true

true labels

y_pred

predicted labels

Details

Provides functionality for confusion_matrix operations.

See Also

VectorForgeML-package

Examples

Run this code
  y_true <- c(1,0,1,1)
  y_pred <- c(1,0,0,1)
  confusion_matrix(y_true, y_pred)

Run the code above in your browser using DataLab