Metrics icon indicating copy to clipboard operation
Metrics copied to clipboard

Suggested modification to apk function

Open grfiv opened this issue 9 years ago • 0 comments

Note that in the event that the 'actual' vector contains no items, the following modification will prevent the return of NaN

if (length(actual) > 0) {
        score <- score / min(length(actual), k)
        }
    else {
        score <- score / k
    }

grfiv avatar Sep 11 '15 21:09 grfiv