commonpower.data_forecasting.nn_forecasting.transform.Transformation

class Transformation[source]

Bases: object

Transformations are used to preprocess the data before feeding it into the neural network. They commonly scale data to certain ranges.

Methods

fit

Fit the transformation to the data.

from_checkpoint

inverse

Inverse transform the data.

load_state_dict

Load the state of the transformation.

state_dict

Return the state of the transformation.

__call__(data: ndarray) ndarray[source]

Transform the data.

fit(data: ndarray)[source]

Fit the transformation to the data.

inverse(data: ndarray) ndarray[source]

Inverse transform the data.

load_state_dict(state_dict: dict) None[source]

Load the state of the transformation.

state_dict() dict[source]

Return the state of the transformation.