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/10/16 16:51:06 UTC

[GitHub] [spark] srowen commented on a change in pull request #26135: [SPARK-29489][ML][PySpark] ml.evaluation support log-loss

srowen commented on a change in pull request #26135: [SPARK-29489][ML][PySpark] ml.evaluation support log-loss
URL: https://github.com/apache/spark/pull/26135#discussion_r335586015
 
 

 ##########
 File path: mllib/src/main/scala/org/apache/spark/mllib/evaluation/MulticlassMetrics.scala
 ##########
 @@ -237,4 +239,38 @@ class MulticlassMetrics @Since("1.1.0") (predictionAndLabels: RDD[_ <: Product])
    */
   @Since("1.1.0")
   lazy val labels: Array[Double] = tpByClass.keys.toArray.sorted
+
+  /**
+   * Returns the logLoss, aka logistic loss or cross-entropy loss.
 
 Review comment:
   You could just use a `@return` tag
   Also log-loss rather than logLoss

----------------------------------------------------------------
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