commonpower.data_forecasting.nn_forecasting.transform.SklearnScalerTransform
- class SklearnScalerTransform(scaler: Any)[source]
Bases:
TransformationTransformation based on a sklearn scaler. We need the given scaler to implement fit(), transform() and inverse_transform() methods. Caution regarding the state_dict() and load_state_dict() methods: Some exotic scalers might need a custom implementation. :param scaler: Instance of sklearn scaler. :type scaler: Any, optional
Methods
Fit the transformation to the data.
from_checkpointInverse transform the data.
Load the state of the transformation.
Return the state of the transformation.