Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3975#discussion_r23566837
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/tree/impurity/Entropy.scala ---
    @@ -94,6 +94,9 @@ private[tree] class EntropyAggregator(numClasses: Int)
           throw new IllegalArgumentException(s"EntropyAggregator given label 
$label" +
             s" but requires label < numClasses (= $statsSize).")
         }
    +    if (label < 0) {
    +      throw new IllegalArgumentException(s"Entropy does not support 
negative labels")
    --- End diff --
    
    Shall we put `label` value to the error message? Add `.` to the end of the 
sentence.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to