[source]

Max Absolute Scaler#

Scale the sample matrix by the maximum absolute value of each feature column independently such that the feature value is between -1 and 1.

Interfaces: Transformer, Stateful, Elastic

Data Type Compatibility: Continuous

Parameters#

This transformer does not have any parameters.

Additional Methods#

Return the maximum absolute values for each feature column:

public maxabs() : array

Example#

use Rubix\ML\Transformers\MaxAbsoluteScaler;

$transformer = new MaxAbsoluteScaler();