powered by
Computes confusion matrix.
confusion_matrix(y_true, y_pred)
matrix
true labels
predicted labels
Provides functionality for confusion_matrix operations.
VectorForgeML-package
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