This is an automated email from the ASF dual-hosted git repository.

srowen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 98708de  [MINOR][ML] add missing since annotation of 
meanAveragePrecision
98708de is described below

commit 98708de38cc6e933a674a260cfb3edb222bfa271
Author: zhengruifeng <ruife...@foxmail.com>
AuthorDate: Mon Jun 3 18:07:23 2019 -0500

    [MINOR][ML] add missing since annotation of meanAveragePrecision
    
    ## What changes were proposed in this pull request?
    add missing since annotation of meanAveragePrecision
    
    ## How was this patch tested?
    existing tests
    
    Closes #24778 from zhengruifeng/ranking_missing_since.
    
    Authored-by: zhengruifeng <ruife...@foxmail.com>
    Signed-off-by: Sean Owen <sean.o...@databricks.com>
---
 .../main/scala/org/apache/spark/mllib/evaluation/RankingMetrics.scala    | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/mllib/src/main/scala/org/apache/spark/mllib/evaluation/RankingMetrics.scala 
b/mllib/src/main/scala/org/apache/spark/mllib/evaluation/RankingMetrics.scala
index 15bda99..9e35ee2 100644
--- 
a/mllib/src/main/scala/org/apache/spark/mllib/evaluation/RankingMetrics.scala
+++ 
b/mllib/src/main/scala/org/apache/spark/mllib/evaluation/RankingMetrics.scala
@@ -68,6 +68,7 @@ class RankingMetrics[T: ClassTag](predictionAndLabels: 
RDD[(Array[T], Array[T])]
    * If a query has an empty ground truth set, the average precision will be 
zero and a log
    * warning is generated.
    */
+  @Since("1.2.0")
   lazy val meanAveragePrecision: Double = {
     predictionAndLabels.map { case (pred, lab) =>
       val labSet = lab.toSet


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to