tsgm.utils.data_processing¶
Module Contents¶
- class TSGlobalScaler[source]¶
Scales time series data globally.
Attributes:¶
- minfloat
Minimum value encountered in the data.
- maxfloat
Maximum value encountered in the data.
- fit(X: tensorflow.python.types.core.TensorLike) TSGlobalScaler[source]¶
Fits the scaler to the data.
- Parameters:
X (TensorLike) – Input data.
- Returns:
The fitted scaler object.
- Return type:
- transform(X: tensorflow.python.types.core.TensorLike) tensorflow.python.types.core.TensorLike[source]¶
Transforms the data.
- Parameters:
X (TensorLike) – Input data.
- Returns:
Scaled X.
- Return type:
TensorLike
- class TSFeatureWiseScaler(feature_range: Tuple[float, float] = (0, 1))[source]¶
Scales time series data feature-wise.
Parameters:¶
- feature_rangetuple(float, float), optional
Tuple representing the minimum and maximum feature values (default is (0, 1)).
Attributes:¶
- _min_vfloat
Minimum feature value.
- _max_vfloat
Maximum feature value.
Initializes a new instance of the TSFeatureWiseScaler class.
- parameter feature_range:
Tuple representing the minimum and maximum feature values, defaults to (0, 1)
- type tuple(float, float), optional:
- fit(X: tensorflow.python.types.core.TensorLike) TSFeatureWiseScaler[source]¶
Fits the scaler to the data.
- Parameters:
X (TensorLike) – Input data.
- Returns:
The fitted scaler object.
- Return type:
- transform(X: tensorflow.python.types.core.TensorLike) tensorflow.python.types.core.TensorLike[source]¶
Transforms the data.
- Parameters:
X (TensorLike) – Input data.
- Returns:
Scaled X.
- Return type:
TensorLike