Module layers

Source
Expand description

This module implments various layers for a neural network

Modules§

sequential

Structs§

LayerBase
The LayerBase struct is a base representation of a neural network layer, essentially binding an activation function, F, to a set of parameters, ParamsBase<S, D>.
Linear
ReLU
Sigmoid
Tanh

Traits§

Activator
The Activator trait defines a method for applying an activation function to an input tensor.
ActivatorGradient
The ActivatorGradient trait extends the Activator trait to include a method for computing the gradient of the activation function.
Layer
A generic trait defining the composition of a layer within a neural network.
LayerExt
The LayerExt trait extends the base Layer trait with additional methods that are commonly used in neural network layers. It provides methods for setting parameters, performing backward propagation of errors, and completing a forward pass through the layer.

Type Aliases§

LinearLayer
A type alias for a LayerBase configured with a Linear activation function.
ReluLayer
A type alias for a LayerBase configured with a ReLU activation function.
SigmoidLayer
A type alias for a LayerBase configured with a Sigmoid activation function.
TanhLayer
A type alias for a LayerBase configured with a Tanh activation function.