Class/Object

org.apache.flink.ml.preprocessing

MinMaxScaler

Related Docs: object MinMaxScaler | package preprocessing

Permalink

class MinMaxScaler extends Transformer[MinMaxScaler]

Scales observations, so that all features are in a user-specified range. By default for MinMaxScaler transformer range = [0,1].

This transformer takes a subtype of Vector of values and maps it to a scaled subtype of Vector such that each feature lies between a user-specified range.

This transformer can be prepended to all Transformer and org.apache.flink.ml.pipeline.Predictor implementations which expect as input a subtype of Vector or a LabeledVector.

Example:
  1. val trainingDS: DataSet[Vector] = env.fromCollection(data)
    val transformer = MinMaxScaler().setMin(-1.0)
    transformer.fit(trainingDS)
    val transformedDS = transformer.transform(trainingDS)

    Parameters

    - Min: The minimum value of the range of the transformed data set; by default equal to 0 - Max: The maximum value of the range of the transformed data set; by default equal to 1

Linear Supertypes
Transformer[MinMaxScaler], Serializable, Serializable, Estimator[MinMaxScaler], WithParameters, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MinMaxScaler
  2. Transformer
  3. Serializable
  4. Serializable
  5. Estimator
  6. WithParameters
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MinMaxScaler()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def chainPredictor[P <: Predictor[P]](predictor: P): ChainedPredictor[MinMaxScaler, P]

    Permalink

    Chains a Transformer with a Predictor to form a ChainedPredictor.

    Chains a Transformer with a Predictor to form a ChainedPredictor.

    P

    Type of the Predictor

    predictor

    Trailing Predictor of the resulting pipeline

    Definition Classes
    Transformer
  6. def chainTransformer[T <: Transformer[T]](transformer: T): ChainedTransformer[MinMaxScaler, T]

    Permalink

    Chains two Transformer to form a ChainedTransformer.

    Chains two Transformer to form a ChainedTransformer.

    T

    Type of the Transformer

    transformer

    Right side transformer of the resulting pipeline

    Definition Classes
    Transformer
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fit[Training](training: DataSet[Training], fitParameters: ParameterMap = ParameterMap.Empty)(implicit fitOperation: FitOperation[MinMaxScaler, Training]): Unit

    Permalink

    Fits the estimator to the given input data.

    Fits the estimator to the given input data. The fitting logic is contained in the FitOperation. The computed state will be stored in the implementing class.

    Training

    Type of the training data

    training

    Training data

    fitParameters

    Additional parameters for the FitOperation

    fitOperation

    FitOperation which encapsulates the algorithm logic

    Definition Classes
    Estimator
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. val parameters: ParameterMap

    Permalink
    Definition Classes
    WithParameters
  19. def setMax(max: Double): MinMaxScaler

    Permalink

    Sets the maximum for the range of the transformed data

    Sets the maximum for the range of the transformed data

    max

    the user-specified maximum value.

    returns

    the MinMaxScaler instance with its minimum value set to the user-specified value.

  20. def setMin(min: Double): MinMaxScaler

    Permalink

    Sets the minimum for the range of the transformed data

    Sets the minimum for the range of the transformed data

    min

    the user-specified minimum value.

    returns

    the MinMaxScaler instance with its minimum value set to the user-specified value.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. def transform[Input, Output](input: DataSet[Input], transformParameters: ParameterMap = ParameterMap.Empty)(implicit transformOperation: TransformDataSetOperation[MinMaxScaler, Input, Output]): DataSet[Output]

    Permalink

    Transform operation which transforms an input DataSet of type I into an output DataSet of type O.

    Transform operation which transforms an input DataSet of type I into an output DataSet of type O. The actual transform operation is implemented within the TransformDataSetOperation.

    Input

    Input data type

    Output

    Output data type

    input

    Input DataSet of type I

    transformParameters

    Additional parameters for the TransformDataSetOperation

    transformOperation

    TransformDataSetOperation which encapsulates the algorithm's logic

    Definition Classes
    Transformer
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Transformer[MinMaxScaler]

Inherited from Serializable

Inherited from Serializable

Inherited from Estimator[MinMaxScaler]

Inherited from WithParameters

Inherited from AnyRef

Inherited from Any

Ungrouped