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

    https://github.com/apache/spark/pull/9777#discussion_r55404547
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/feature/OneHotEncoder.scala ---
    @@ -132,8 +133,10 @@ class OneHotEncoder(override val uid: String) extends 
Transformer
           val numAttrs = 
dataset.select(col(inputColName).cast(DoubleType)).map(_.getDouble(0))
             .aggregate(0.0)(
               (m, x) => {
    -            assert(x >=0.0 && x == x.toInt,
    -              s"Values from column $inputColName must be indices, but got 
$x.")
    +            assert(x <= Int.MaxValue,
    +              s"OneHotEncoder only supports up to ${Int.MaxValue} indices, 
but got $x")
    +            assert(x >= 0.0 && x == x.toInt,
    +              s"Values e column $inputColName must be indices, but got 
$x.")
    --- End diff --
    
    I reverted this back to the original wording, "Values from column".


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