Skip to main content

Module transforms

Module transforms 

Source
Expand description

Transforms - Data Augmentation and Preprocessing

§File

crates/axonml-data/src/transforms.rs

§Author

Andrew Jewell Sr - AutomataNexus

§Updated

March 8, 2026

§Disclaimer

Use at own risk. This software is provided “as is”, without warranty of any kind, express or implied. The author and AutomataNexus shall not be held liable for any damages arising from the use of this software.

Structs§

Clamp
Clamps tensor values to a specified range.
Compose
Composes multiple transforms into a single transform.
DropoutTransform
Applies dropout by randomly zeroing elements during training.
Flatten
Flattens the tensor to 1D.
Lambda
Applies a custom function as a transform.
Normalize
Normalizes a tensor with mean and standard deviation.
RandomCrop
Randomly crops a portion of the input.
RandomFlip
Randomly flips the input along a specified dimension.
RandomNoise
Adds random Gaussian noise to the input.
Reshape
Reshapes the tensor to a specified shape.
Scale
Scales tensor values by a constant factor.
ToTensor
Converts input to a tensor (identity for already-tensor inputs).

Traits§

Transform
Trait for data transformations.