Github user MLnick commented on the issue: https://github.com/apache/spark/pull/14663 Ah right, good point. Actually I realised that the doc in `ml.feature.StandardScaler` needs updating for `withMean`: ``` /** * Whether to center the data with mean before scaling. * It will build a dense output, so this does not work on sparse input * and will raise an exception. * Default: false * @group param */ val withMean: BooleanParam = new BooleanParam(this, "withMean", "Whether to center data with mean") ``` ... as good a place as any to add a warning about using with sparse input (this can then show up in `explainParam` doc as well as ScalaDoc. Python side will probably need it too.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org