Find file History
Latest commit 9479091 Sep 2, 2015 @eduardofv eduardofv Validation for empty vectors
Validate if actual o predicted are empty return 0.0. Specially useful
when evaluating cases like recommendations with no actual response

README.md

Metrics provides simple access to commonly used evaluation metrics in machine learning.

Installation

To install or update, run the following command from the R prompt. You need the latest version of R to get the latest version of Metrics.

> install.packages("Metrics")

Example Usage

> library("Metrics")
> auc(c(1,1,1,0,0,0), c(0.9,0.8,0.4,0.5,0.3,0.2))
[1] 0.8888889
> 
> se(1,4)
[1] 9