Skip to content

[source]

Min Max Normalizer#

The Min Max Normalizer scales the input features to a value between a user-specified range (default 0 to 1).

Interfaces: Transformer, Stateful, Elastic, Reversible, Persistable

Data Type Compatibility: Continuous

Parameters#

# Name Default Type Description
1 min 0.0 float The minimum value of the transformed features.
2 max 1.0 float The maximum value of the transformed features.

Example#

use Rubix\ML\Transformers\MinMaxNormalizer;

$transformer = new MinMaxNormalizer(-5.0, 5.0);

Additional Methods#

Return the minimum values for each fitted feature column:

public minimums() : ?array

Return the maximum values for each fitted feature column:

public maximums() : ?array