Description Usage Arguments Value Examples
This function gives average precision. Please refer to 'vignette' to find detailed concept of average precision.
1 | averagePrecision(uNumToExamineK, Yreal, Yhat)
|
uNumToExamineK |
- The number of element of Yreal. |
Yreal |
- A N x 1 vector that indicates that "1" is true, "0" is false. |
Yhat |
- The estimated score(possibility) to be labeled as "1". The higher the element value is, The more likely to be labeled as "1". |
average precision
1 2 | averagePrecision(2, c(1,0), c(0.5, 0.3))
averagePrecision(2, c(0,1), c(0.5, 0.3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.