Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/7211#discussion_r36770671
--- Diff: docs/ml-features.md ---
@@ -905,6 +906,74 @@ scaledData = scalerModel.transform(dataFrame)
</div>
</div>
+## MinMaxScaler
+
+`MinMaxScaler` transforms a dataset of `Vector` rows, rescaling each
feature to a specific range (often [0, 1]). It takes parameters:
+
+* `min`: 0.0 by default. Lower bound after transformation, shared by all
features.
+* `max`: 1.0 by default. Upper bound after transformation, shared by all
features.
+
+`MinMaxScaler` computes summary statistics on a data set and produces a
`MinMaxScalerModel`. The model can then transform each feature individually
such that it is in the given range.
+
+The rescaled value for a feature E is calculated as,
+
+ Rescaled(e_i) = \frac{e_i - E_{min}}{E_{max} - E_{min}} * (max - min) +
min
--- End diff --
Could you please make this render as Latex? You can follow the examples in
mllib-linear-methods.md
Same for other equations below.
---
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]