Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/7875#discussion_r36049480
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala ---
@@ -85,6 +85,18 @@ class LinearRegression(override val uid: String)
setDefault(fitIntercept -> true)
/**
+ * Whether to standardize the training features before fitting the model.
+ * The coefficients of models will be always returned on the original
scale,
+ * so it will be transparent for users. Note that when no regularization,
+ * with or without standardization, the models should be always
converged to
+ * the same solution.
+ * Default is true.
+ * @group setParam
+ */
+ def setStandardization(value: Boolean): this.type = set(standardization,
value)
+ setDefault(standardization -> true)
--- End diff --
Minor note: since this is a new API consider mentioning that the old
default did have standardization turned on so people don't expect differences?
(nit)
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]