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