4d987fed3c52b9b24cf5ebe3547cc2969b65b381,tensorflow_ranking/python/metrics.py,,normalized_discounted_cumulative_gain,#Any#Any#Any#Any#Any#Any#Any#,589
Before Change
with tf.compat.v1.name_scope(metric.name,
"normalized_discounted_cumulative_gain",
(labels, predictions, weights)):
return metric.compute(labels, predictions, weights)
class _DCGMetric(_RankingMetric):
Implements discounted cumulative gain (DCG).
After Change
with tf.compat.v1.name_scope(metric.name,
"normalized_discounted_cumulative_gain",
(labels, predictions, weights)):
per_list_ndcg, per_list_weights = metric.compute(labels, predictions,
weights)
return tf.compat.v1.metrics.mean(per_list_ndcg, per_list_weights)
class _DCGMetric(_RankingMetric):
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 4
Instances
Project Name: tensorflow/ranking
Commit Name: 4d987fed3c52b9b24cf5ebe3547cc2969b65b381
Time: 2019-12-17
Author: ramakumar@google.com
File Name: tensorflow_ranking/python/metrics.py
Class Name:
Method Name: normalized_discounted_cumulative_gain
Project Name: tensorflow/ranking
Commit Name: 4d987fed3c52b9b24cf5ebe3547cc2969b65b381
Time: 2019-12-17
Author: ramakumar@google.com
File Name: tensorflow_ranking/python/metrics.py
Class Name:
Method Name: average_relevance_position
Project Name: tensorflow/ranking
Commit Name: 4d987fed3c52b9b24cf5ebe3547cc2969b65b381
Time: 2019-12-17
Author: ramakumar@google.com
File Name: tensorflow_ranking/python/metrics.py
Class Name:
Method Name: mean_reciprocal_rank
Project Name: tensorflow/ranking
Commit Name: 4d987fed3c52b9b24cf5ebe3547cc2969b65b381
Time: 2019-12-17
Author: ramakumar@google.com
File Name: tensorflow_ranking/python/metrics.py
Class Name:
Method Name: discounted_cumulative_gain
Project Name: tensorflow/ranking
Commit Name: 4d987fed3c52b9b24cf5ebe3547cc2969b65b381
Time: 2019-12-17
Author: ramakumar@google.com
File Name: tensorflow_ranking/python/metrics.py
Class Name:
Method Name: precision
Project Name: tensorflow/ranking
Commit Name: 4d987fed3c52b9b24cf5ebe3547cc2969b65b381
Time: 2019-12-17
Author: ramakumar@google.com
File Name: tensorflow_ranking/python/metrics.py
Class Name:
Method Name: mean_average_precision
Project Name: tensorflow/ranking
Commit Name: 4d987fed3c52b9b24cf5ebe3547cc2969b65b381
Time: 2019-12-17
Author: ramakumar@google.com
File Name: tensorflow_ranking/python/metrics.py
Class Name:
Method Name: ordered_pair_accuracy