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 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()[源代码]¶
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