accuracy.me {TeachNet} | R Documentation |
Computes accuracy
Description
For a given observation and prediction this function computes the accuracy of the prediction.
Usage
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
[Package TeachNet version 0.7.1 Index]