Attend the Women in ML Symposium on December 7 Register now

Module: tfr.keras.metrics

Stay organized with collections Save and categorize content based on your preferences.

Keras metrics in TF-Ranking.


class ARPMetric: Average relevance position (ARP).

class AlphaDCGMetric: Alpha discounted cumulative gain (alphaDCG).

class DCGMetric: Discounted cumulative gain (DCG).

class HitsMetric: Hits@k metric.

class MRRMetric: Mean reciprocal rank (MRR).

class MeanAveragePrecisionMetric: Mean average precision (MAP).

class NDCGMetric: Normalized discounted cumulative gain (NDCG).

class OPAMetric: Ordered pair accuracy (OPA).

class PrecisionIAMetric: Precision-IA@k (Pre-IA@k).

class PrecisionMetric: Precision@k (P@k).

class RankingMetricKey: Ranking metric key strings.

class RecallMetric: Recall@k (R@k).


default_keras_metrics(...): Returns a list of ranking metrics.

get(...): Factory method to get a list of ranking metrics.

absolute_import Instance of __future__._Feature
division Instance of __future__._Feature
print_function Instance of __future__._Feature