Class implementing a neural network.
Macros:
Activation function class definition macro
Macro of the definition of one layer Number of nodes size_t nbNode; Reference to the activation function for the nodes of this layer CapyMathFun* activation;
Enumerations:
Types of activation function
Typedefs:
Activation function class
Definition of one layer
Struct CapyNNLink :
Struct CapyNNLink's properties:
Index of the input layer
Index of the input node in the layer
Index of the weight of the link in the array of params
Struct CapyNNLink's methods:
None.
Struct CapyNNNode :
Struct CapyNNNode's properties:
Value of the node before applying the activation function (i.e. w.x+b)
Value of the node after applying the activation function (i.e. A(w.x+b))
Previous value of the node
Variable to memorise and reuse the propagating derivation during training
Number of input links
Input links
Index of the bias of the node in the array of params
Struct CapyNNNode's methods:
None.
Struct CapyNNLayer :
Struct CapyNNLayer's properties:
Layer definition
Depth of the layer
Nodes
Struct CapyNNLayer's methods:
None.
Struct CapyNNModel :
Struct CapyNNModel's properties:
Number of layers
Number of node and activation function per layer
Struct CapyNNModel's methods:
None.
Struct CapyNeuralNetwork :
Struct CapyNeuralNetwork's properties:
Number of input
Number of output
Number of layers
Layers (including input and output layers)
Total number of params (weights and biases) in the model
Array of all weights and biases, ordered by layer and node
Struct CapyNeuralNetwork's methods:
Destructor
Evaluate the neural network
Save the neural network to a stream Input: stream: the stream on which to save Output: The neural network is saved on the stream
Struct CapyNNActivationLinear :
Struct CapyNNActivationLinear's properties:
Struct CapyNNActivationLinear's methods:
None.
Struct CapyNNActivationStep :
Struct CapyNNActivationStep's properties:
Struct CapyNNActivationStep's methods:
None.
Struct CapyNNActivationSigmoid :
Struct CapyNNActivationSigmoid's properties:
Struct CapyNNActivationSigmoid's methods:
None.
Struct CapyNNActivationHyperTangent :
Struct CapyNNActivationHyperTangent's properties:
Struct CapyNNActivationHyperTangent's methods:
None.
Struct CapyNNActivationReLU :
Struct CapyNNActivationReLU's properties:
Struct CapyNNActivationReLU's methods:
None.
Struct CapyNNActivationSiLU :
Struct CapyNNActivationSiLU's properties:
Struct CapyNNActivationSiLU's methods:
None.
Functions:
Copy a CapyNNModel
Input argument(s):
that: the model to copy
Output and side effect(s):
Return a copy.
Destruct a CapyNNModel
Input argument(s):
that: the model to destruct
Output and side effect(s):
The model is destructed.
Create a CapyNeuralNetwork
Input argument(s):
nbInput: size of the input vector
model: the layers model
nbOutput: size of the output vector
Output and side effect(s):
Return a CapyNeuralNetwork
Allocate memory for a new CapyNeuralNetwork and create it
Input argument(s):
nbInput: size of the input vector
model: the layers model
nbOutput: size of the output vector
Output and side effect(s):
Return a CapyNeuralNetwork
Exception(s):
May raise CapyExc_MallocFailed.
Free the memory used by a CapyNeuralNetwork* and reset '*that' to NULL
Input argument(s):
that: a pointer to the CapyNeuralNetwork to free
Load a CapyNeuralNetwork from a stream
Input argument(s):
stream: the stream from which the NN is loaded
model: CapyNNModel updated with the model of the loaded NN
Output and side effect(s):
Return a CapyNeuralNetwork
Create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Allocate memory and create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Free the memory used by a
Output and side effect(s):
Return a CapyMathFun implementing a step function
Create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Allocate memory and create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Free the memory used by a
Output and side effect(s):
Return a CapyMathFun implementing a step function
Create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Allocate memory and create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Free the memory used by a
Output and side effect(s):
Return a CapyMathFun implementing a step function
Create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Allocate memory and create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Free the memory used by a
Output and side effect(s):
Return a CapyMathFun implementing a step function
Create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Allocate memory and create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Free the memory used by a
Output and side effect(s):
Return a CapyMathFun implementing a step function
Create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Allocate memory and create a step activation function
Output and side effect(s):
Return a CapyMathFun implementing a step function
Free the memory used by a
Output and side effect(s):
Return a CapyMathFun implementing a step function