accuracy.me {TeachNet} | R Documentation |
For a given observation and prediction this function computes the accuracy of the prediction.
accuracy.me(obs, predict, thres = 0.5)
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. |
Returns a 1 x 3 matrix with the percentage of observations with class zero, with class one and last the accuracy of the prediction.
Georg Steinbuss