Skip to content


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, Reversible, Persistable

Data Type Compatibility: Continuous


This transformer does not have any parameters.


use Rubix\ML\Transformers\MaxAbsoluteScaler;

$transformer = new MaxAbsoluteScaler();

Additional Methods#

Return the maximum absolute values for each feature column:

public maxabs() : array