DataModule.inverse_transform_y
- DataModule.inverse_transform_y(y: torch.Tensor | ndarray, out_type: str = 'numpy') torch.Tensor | ndarray [source]
Un-transform only the output data. Takes care of the case where y is a numpy array or a torch tensor.
- Parameters:
y (Union[torch.Tensor, np.ndarray]) – A numpy array or a torch tensor to be un-transformed.
out_type (str, optional) – The type of the output. Can be “numpy”, “torch”, or “same”. The default is “numpy”.
- Returns:
Union[torch.Tensor, np.ndarray] – The un-transformed data.