Metrics
A module for PyKEEN ranking and classification metrics.
Classes
|
A base class for metrics. |
|
A value range description. |
A base class for rank-based metrics. |
|
A base class for classification metrics. |
Class Inheritance Diagram
Ranking metrics.
Functions
|
Generate random ranks from a given array of the number of candidates for each ranking task. |
|
Generate random number of candidates, and coherent ranks. |
|
Calculate the generalized harmonic numbers from 1 to n (both inclusive). |
Pre-calculate variances of inverse rank distributions. |
Classes
A base class for rank-based metrics. |
|
|
A derived rank-based metric. |
|
An adjustment to create an expectation-normalized metric. |
|
A mixin to create an expectation normalized metric with max of 1 and expectation of 0. |
|
A z-score adjusted metrics. |
The (arithmetic) mean rank. |
|
|
The adjusted arithmetic mean rank (AMR). |
|
The adjusted arithmetic mean rank index (AMRI). |
|
The z-scored arithmetic mean rank. |
The inverse arithmetic mean rank. |
|
The geometric mean rank. |
|
The inverse geometric mean rank. |
|
The harmonic mean rank. |
|
The inverse harmonic mean rank. |
|
|
The adjusted MRR index. |
|
The z-inverse harmonic mean rank (ZIHMR). |
The median rank. |
|
The inverse median rank. |
|
|
The Hits @ k. |
|
The adjusted Hits at K (\(AH_k\)). |
|
The z-scored hits at k (\(ZAH_k\)). |
The ranks' standard deviation. |
|
|
The ranks' variance. |
|
The ranks' count. |
The metric does not provide a closed-form implementation for the requested operation. |
|
|
The parameters of an affine transformation. |