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

    https://github.com/apache/spark/pull/19438#discussion_r143203632
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/feature/ImputerSuite.scala ---
    @@ -43,7 +43,7 @@ class ImputerSuite extends SparkFunSuite with 
MLlibTestSparkContext with Default
           (0, 1.0, 1.0, 1.0),
           (1, 3.0, 3.0, 3.0),
           (2, Double.NaN, Double.NaN, Double.NaN),
    -      (3, -1.0, 2.0, 3.0)
    +      (3, -1.0, 2.0, 1.0)
    --- End diff --
    
    yes, the data has only two values 1.0 and 3.0, after the change, median 
(50% percentile) is 1.0


---

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

Reply via email to