accuracy.me: Computes accuracy

Description Usage Arguments Value Author(s) See Also

Description

For a given observation and prediction this function computes the accuracy of the prediction.

Usage

1
accuracy.me(obs, predict, thres = 0.5)

Arguments

obs

The observations

predict

The predictions for the observations

thres

A threshold up to which a prediction is class 0 or 1. A value from 0 to 1.

Value

Returns a 1 x 3 matrix with the percentage of observations with class zero, with class one and last the accuracy of the prediction.

Author(s)

Georg Steinbuss

See Also

confusion


TeachNet documentation built on May 2, 2019, 7 a.m.