Expand description
Additional utilities for creating, manipulating, and managing tensors and models.
Structs§
- Dropout
- The Dropout layer is randomly zeroizes inputs with a given probability (
p). This regularization technique is often used to prevent overfitting. - PadAction
Iter - An iterator over the variants of PadAction
- Padding
Enums§
Traits§
- DropOut
- Dropout randomly zeroizes elements with a given probability (
p). - Pad
- The
Padtrait defines a padding operation for tensors.
Functions§
- calculate_
pattern_ similarity - Calculate similarity between two patterns
- clip_
gradient - Clip the gradient to a maximum value.
- clip_
inf_ nan - concat_
iter - Creates an n-dimensional array from an iterator of n dimensional arrays.
- extract_
patterns - Extract common patterns from historical sequences
- floor_
div - divide two values and round down to the nearest integer.
- genspace
- hstack
- stack a 1D array into a 2D array by stacking them horizontally.
- inverse
- is_
similar_ pattern - Check if two patterns are similar enough to be considered duplicates
- layer_
norm - layer_
norm_ axis - linarr
- round_
to - Round the given value to the given number of decimal places.
- stack_
iter - Creates a larger array from an iterator of smaller arrays.
- tril
- Returns the lower triangular portion of a matrix.
- triu
- Returns the upper triangular portion of a matrix.
- vstack
- stack a 1D array into a 2D array by stacking them vertically.