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

    https://github.com/apache/spark/pull/20964#discussion_r178784053
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/feature/MinMaxScalerSuite.scala ---
    @@ -48,8 +46,8 @@ class MinMaxScalerSuite extends SparkFunSuite with 
MLlibTestSparkContext with De
           .setMax(5)
     
         val model = scaler.fit(df)
    -    model.transform(df).select("expected", "scaled").collect()
    -      .foreach { case Row(vector1: Vector, vector2: Vector) =>
    +    testTransformer[(Vector, Vector)](df, model, "expected", "scaled") {
    +      case Row(vector1: Vector, vector2: Vector) =>
             assert(vector1.equals(vector2), "Transformed vector is different 
with expected.")
    --- End diff --
    
    `vector1 === vector2`


---

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

Reply via email to