Expand description
A suite of utilities tailored toward neural networks.
Our focus revolves around the following areas:
- Numerical Operations: Efficient implementations of mathematical functions.
- Statistical Functions: Tools for statistical analysis and operations.
- Signal Processing: Functions and utilities for signal manipulation.
- Utilities: General-purpose utilities to aid in mathematical computations.
Modules§
Macros§
Enums§
Traits§
- Abs
- AsComplex
- Conjugate
- Cos
- Cosh
- Cubed
- Exp
- Floor
Div - Into
Complex - Trait for converting a type into a complex number.
- Percent
Diff - Compute the percentage difference between two values. The percentage difference is defined as:
- Root
- RoundTo
- Sine
- Sinh
- Square
Root - Squared
- Tan
- Tanh
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
- heavyside
- Heaviside activation function
- 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
- relu
- the relu activation function: $f(x) = \max(0, x)$
- relu_
derivative - round_
to - Round the given value to the given number of decimal places.
- sigmoid
- the sigmoid activation function: $f(x) = \frac{1}{1 + e^{-x}}$
- sigmoid_
derivative - the derivative of the sigmoid function
- softmax
- Softmax function: $f(x_i) = \frac{e^{x_i}}{\sum_j e^{x_j}}$
- softmax_
axis - Softmax function along a specific axis: $f(x_i) = \frac{e^{x_i}}{\sum_j e^{x_j}}$
- stack_
iter - Creates a larger array from an iterator of smaller arrays.
- tanh
- the tanh activation function: $f(x) = \frac{e^x - e^{-x}}{e^x + e^{-x}}$
- tanh_
derivative - the derivative of the tanh function
- 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.