averagePrecision: Getting Average precision.

Description Usage Arguments Value Examples

Description

This function gives average precision. Please refer to 'vignette' to find detailed concept of average precision.

Usage

1
averagePrecision(uNumToExamineK, Yreal, Yhat)

Arguments

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".

Value

average precision

Examples

1
2
averagePrecision(2, c(1,0), c(0.5, 0.3))
averagePrecision(2, c(0,1), c(0.5, 0.3))

hwchang1201/poincare.embeddings documentation built on Dec. 9, 2019, 1:30 p.m.