Learn R Programming

randomUniformForest (version 1.0.9)

model.stats: Common statistics for a vector of predictions and a vector of responses

Description

Given a vector of predictions and a vector of responses, provide some statistics and plots like AUC, AUPR, confusion matrix, F1-score, geometric mean, residuals, mean squared and mean absolute error.

Usage

model.stats(predictions, responses, regression = FALSE)

Arguments

predictions
a vector (or factor) of predictions.
responses
a vector (or factor) of responses of the same length than 'predictions'.
regression
if FALSE, considered arguments are treated as a classification task.

Value

  • print and plot metrics and put them in a list.