You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by srowen <gi...@git.apache.org> on 2018/06/14 13:48:24 UTC

[GitHub] spark pull request #19084: [SPARK-20711][ML]MultivariateOnlineSummarizer/Sum...

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

    https://github.com/apache/spark/pull/19084#discussion_r195429701
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/MinMaxScaler.scala ---
    @@ -117,11 +113,56 @@ class MinMaxScaler @Since("1.5.0") (@Since("1.5.0") override val uid: String)
       @Since("2.0.0")
       override def fit(dataset: Dataset[_]): MinMaxScalerModel = {
         transformSchema(dataset.schema, logging = true)
    -    val input: RDD[OldVector] = dataset.select($(inputCol)).rdd.map {
    -      case Row(v: Vector) => OldVectors.fromML(v)
    +
    --- End diff --
    
    Rather than copy all that code, I wonder if that utility class can just be modified to selectively handle NaN differently?  


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org