Learn R Programming

HTLR (version 0.4-4)

evaluate_pred: Evaluate Prediction Results

Description

This function compares the prediction results returned by a classifier with ground truth, and finally gives a summary of the evaluation.

Usage

evaluate_pred(y.pred, y.true, caseid = names(y.true), showplot = TRUE, ...)

Value

A summary of evaluation result.

Arguments

y.pred

A matrix of predicted probabilities, as returned by a classifier.

y.true

Ground truth labels vector.

caseid

The names of test cases which we take account of. By default all test cases are used for evaluation.

showplot

Logical; if TRUE, a summary plot will be generated.

...

Not used.