finol.data_layer.ScalerSelector

class finol.data_layer.ScalerSelector[源代码]

Class to select different types of scalers and performs partial data standardization depending on the configuration.

Methods

select_scaler()

Select the data scaler based on the configuration.

window_normalize(data)

Normalize the input tensor data along the window dimension based on different methods.

window_normalize_via_MaxAbsScaler(data)

Normalize the input tensor data along the window dimension via MaxAbsScaler.

window_normalize_via_MinMaxScaler(data)

Normalize the input tensor data along the window dimension via MinMaxScaler.

window_normalize_via_RobustScaler(data)

Normalize the input tensor data along the window dimension via RobustScaler.

window_normalize_via_StandardScaler(data)

Normalize the input tensor data along the window dimension via StandardScaler.

select_scaler()[源代码]

Select the data scaler based on the configuration.

返回:

The selected scaler object, or None if no scaler is specified.

返回类型:

Optional[object]

window_normalize(data)[源代码]

Normalize the input tensor data along the window dimension based on different methods.

参数:

data (Tensor) – Input data tensor of shape (…, window_size, feature_dim).

返回:

Standardized data tensor of the same shape.

返回类型:

Tensor

window_normalize_via_MaxAbsScaler(data)[源代码]

Normalize the input tensor data along the window dimension via MaxAbsScaler.

参数:

data (Tensor) – Input data tensor of shape (…, window_size, feature_dim).

返回:

Standardized data tensor of the same shape.

返回类型:

Tensor

window_normalize_via_MinMaxScaler(data)[源代码]

Normalize the input tensor data along the window dimension via MinMaxScaler.

参数:

data (Tensor) – Input data tensor of shape (…, window_size, feature_dim).

返回:

Standardized data tensor of the same shape.

返回类型:

Tensor

window_normalize_via_RobustScaler(data)[源代码]

Normalize the input tensor data along the window dimension via RobustScaler.

参数:

data (Tensor) – Input data tensor of shape (…, window_size, feature_dim).

返回:

Standardized data tensor of the same shape.

返回类型:

Tensor

window_normalize_via_StandardScaler(data)[源代码]

Normalize the input tensor data along the window dimension via StandardScaler.

参数:

data (Tensor) – Input data tensor of shape (…, window_size, feature_dim).

返回:

Standardized data tensor of the same shape.

返回类型:

Tensor