metrics¶
Normalized Discount Cumulative Gain (NDCG)¶
-
class
cornac.metrics.
NDCG
(m=None)[source]¶ Normalized Discount Cumulative Gain.
Parameters: - m (int, optional, default: None) – The number of items in the top@m list, if None then all items are considered to compute NDCG.
- name (string, value: 'NDCG') – Name of the measure.
- type (string, value: 'ranking') – Type of the metric, e.g., “ranking”.
Normalized Cumulative Reciprocal Rank (NCRR)¶
-
class
cornac.metrics.
NCRR
(m=None)[source]¶ Normalized Cumulative Reciprocal Rank.
Parameters: - m (int, optional, default: None) – The number of items in the top@m list, if None then all items are considered to compute NDCG.
- name (string, value: 'NCRR') – Name of the measure.
- type (string, value: 'ranking') – Type of the metric, e.g., “ranking”.