You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/03/04 13:29:23 UTC
[GitHub] [spark] srowen commented on a change in pull request #23881:
[SPARK-26981][MLlib] Add 'Recall_at_k' metric to RankingMetrics
srowen commented on a change in pull request #23881: [SPARK-26981][MLlib] Add 'Recall_at_k' metric to RankingMetrics
URL: https://github.com/apache/spark/pull/23881#discussion_r262056984
##########
File path: mllib/src/main/scala/org/apache/spark/mllib/evaluation/RankingMetrics.scala
##########
@@ -157,6 +141,63 @@ class RankingMetrics[T: ClassTag](predictionAndLabels: RDD[(Array[T], Array[T])]
}.mean()
}
+ /**
+ * Compute the average recall of all the queries, truncated at ranking position k.
+ *
+ * If for a query, the ranking algorithm returns n results, the recall value will be
Review comment:
This is fine; you could also just references the documentation for precisionAt here rather than repeat it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org