doc
Define preprocessors used in documentation tutorials.
Classes:
Name | Description |
---|---|
Scaler |
Air quality, ECG, HAR and Gas Price preprocessors. |
ScaleImage |
MNIST preprocessor, given an image in range [0, 256], scale the pixel values to [-1 ,1]. |
Scaler(input_size: tuple[int, ...], mean: torch.Tensor, scale: torch.Tensor)
#
Air quality, ECG, HAR and Gas Price preprocessors.
Methods:
Name | Description |
---|---|
transform |
Transform. |
inverse_transform |
Apply inverse transform. |
Source code in src/xpdeep/dataset/preprocessor/zoo/doc.py
ScaleImage(input_size: tuple[int, ...], module_transform: torch.nn.Module | None = None, module_inverse_transform: torch.nn.Module | None = None, **additional_attributes: object)
#
MNIST preprocessor, given an image in range [0, 256], scale the pixel values to [-1 ,1].
Methods:
Name | Description |
---|---|
transform |
Transform. |
inverse_transform |
Apply inverse transform. |