51d3b20c02d412c973158e6807ee99b1f7eb1378,rankeval/core/metrics/recall.py,Recall,eval,#Recall#Any#Any#,34
Before Change
numpy.array
The detailed Recall scores for each query, an array of length of the number of queries.
super(Recall, self).eval(dataset, y_pred)
for query_id, query_y, query_y_pred in self.query_iterator(dataset, y_pred):
self.detailed_scores[query_id] = self.eval_per_query(query_y, query_y_pred)
return self.detailed_scores.mean(), self.detailed_scores
def eval_per_query(self, y, y_pred):
After Change
numpy.array
The detailed Recall scores for each query, an array of length of the number of queries.
return super(Recall, self).eval(dataset, y_pred)
def eval_per_query(self, y, y_pred):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
Instances
Project Name: hpclab/rankeval
Commit Name: 51d3b20c02d412c973158e6807ee99b1f7eb1378
Time: 2017-06-13
Author: cristina.i.muntean@gmail.com
File Name: rankeval/core/metrics/recall.py
Class Name: Recall
Method Name: eval
Project Name: hpclab/rankeval
Commit Name: 51d3b20c02d412c973158e6807ee99b1f7eb1378
Time: 2017-06-13
Author: cristina.i.muntean@gmail.com
File Name: rankeval/core/metrics/ndcg.py
Class Name: NDCG
Method Name: eval
Project Name: hpclab/rankeval
Commit Name: 51d3b20c02d412c973158e6807ee99b1f7eb1378
Time: 2017-06-13
Author: cristina.i.muntean@gmail.com
File Name: rankeval/core/metrics/recall.py
Class Name: Recall
Method Name: eval
Project Name: hpclab/rankeval
Commit Name: 51d3b20c02d412c973158e6807ee99b1f7eb1378
Time: 2017-06-13
Author: cristina.i.muntean@gmail.com
File Name: rankeval/core/metrics/precision.py
Class Name: Precision
Method Name: eval