spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From imatiach-msft <>
Subject [GitHub] spark pull request #16571: [SPARK-19208][ML] MaxAbsScaler and MinMaxScaler a...
Date Fri, 13 Jan 2017 23:09:31 GMT
Github user imatiach-msft commented on a diff in the pull request:
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/MaxAbsScaler.scala ---
    @@ -70,14 +67,40 @@ class MaxAbsScaler @Since("2.0.0") (@Since("2.0.0") override val uid:
       override def fit(dataset: Dataset[_]): MaxAbsScalerModel = {
         transformSchema(dataset.schema, logging = true)
    -    val input: RDD[OldVector] =$(inputCol)) {
    -      case Row(v: Vector) => OldVectors.fromML(v)
    -    }
    -    val summary = Statistics.colStats(input)
    --- End diff --
    is it the call to colStats and vector conversion that was so inefficient?  do you have
any performance numbers to justify the change, since it does make the code more complicated.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message