MaxAbsScaler: Scales each feature by its maximum absolute value

MaxAbsScalerR Documentation

Scales each feature by its maximum absolute value

Description

This estimator scales and translates each feature individually such that the maximal absolute value of each feature in the training set will be 1.0. It does not shift/center the data, and thus does not destroy any sparsity.

This scaler can also be applied to sparse CSR or CSC matrices.

Super classes

rgudhi::PythonClass -> rgudhi::SKLearnClass -> rgudhi::BaseScaler -> MaxAbsScaler

Methods

Public methods

Inherited methods

Method new()

The MaxAbsScaler class constructor.

Usage
MaxAbsScaler$new(copy = TRUE)
Arguments
copy

A boolean value specifying whether to perform in-place scaling and avoid a copy (if the input is already a numpy array). Defaults to TRUE.

Returns

An object of class MaxAbsScaler.


Method clone()

The objects of this class are cloneable with this method.

Usage
MaxAbsScaler$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples


mas <- MaxAbsScaler$new()


rgudhi documentation built on March 31, 2023, 11:38 p.m.