Compare a vector of truth classes and prediction classes. The function is actually generic. It works for +1/-1/0 classes, by any other labels work as well.
1 | evaluatePredictionAccuracy(truth, prediction)
|
truth |
- a vector holding true labels |
prediction |
- a vector holding labels output by some prediction method |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.