finol.data_layer.ScalerSelector¶
- class finol.data_layer.ScalerSelector[source]¶
Class to select different types of scalers and performs partial data standardization depending on the configuration.
Methods
Select the data scaler based on the configuration.
window_normalize(data)Normalize the input tensor data along the window dimension based on different methods.
Normalize the input tensor data along the window dimension via MaxAbsScaler.
Normalize the input tensor data along the window dimension via MinMaxScaler.
Normalize the input tensor data along the window dimension via RobustScaler.
Normalize the input tensor data along the window dimension via StandardScaler.
- select_scaler()[source]¶
Select the data scaler based on the configuration.
- Returns:
The selected scaler object, or None if no scaler is specified.
- Return type:
Optional[object]
- window_normalize(data)[source]¶
Normalize the input tensor data along the window dimension based on different methods.
- Parameters:
data (Tensor) – Input data tensor of shape (…, window_size, feature_dim).
- Returns:
Standardized data tensor of the same shape.
- Return type:
Tensor
- window_normalize_via_MaxAbsScaler(data)[source]¶
Normalize the input tensor data along the window dimension via MaxAbsScaler.
- Parameters:
data (Tensor) – Input data tensor of shape (…, window_size, feature_dim).
- Returns:
Standardized data tensor of the same shape.
- Return type:
Tensor
- window_normalize_via_MinMaxScaler(data)[source]¶
Normalize the input tensor data along the window dimension via MinMaxScaler.
- Parameters:
data (Tensor) – Input data tensor of shape (…, window_size, feature_dim).
- Returns:
Standardized data tensor of the same shape.
- Return type:
Tensor