Description
Add a popular scaling method to feature component, which is commonly known as min-max normalization or Rescaling.
Core function is,
Normalized( x ) = (x - min) / (max - min) * scale + newBase
where newBase and scale are parameters of the VectorTransformer. newBase is the new minimum number for the feature, and scale controls the range after transformation. This is a little complicated than the basic MinMax normalization, yet it provides flexibility so that users can control the range more specifically. like [0.1, 0.9] in some NN application.
for case that max == min, 0.5 is used as the raw value.
reference:
http://en.wikipedia.org/wiki/Feature_scaling
http://stn.spotfire.com/spotfire_client_help/index.htm#norm/norm_scale_between_0_and_1.htm
Attachments
Issue Links
- relates to
-
SPARK-8529 Set metadata for MinMaxScaler
- Resolved
-
SPARK-8530 Add Python API for MinMaxScaler
- Resolved
-
SPARK-8531 Update ML user guide for MinMaxScaler
- Resolved
-
SPARK-9891 User guide for MinMaxScaler
- Closed
- links to