View on GitHub

Unit Neurons Documentation

Gradient Descent

Float Feedforward Neuron

Constructors

FloatFeedForwardNeuron(_prevs, _num_prevs, _query_manager, &_activ)

FloatFeedForwardNeuron(_prevs, _num_prevs, _query_manager, float (*_activation) (float), float (*_gradient) (float))

Structure

Public Methods and Variables

Additional Notes and Code

For more details on private variables, methods, and other functionalities performed within the definition of the class, refer to the hpp file and the cpp file .

Float Gradient Descent

Subclass of GlobalOperator that starts the gradient descent training process of the neural network

Constructors

FloatGradientDescent(_targets, _num_targets)

Training

FloatGradientDescent contains functions that executes the feedback(float* fb_input) of the output neurons.

However, before executing execute(), the global operator must calculate the loss function given a correct output (refer to supervised learning).

Minimum Square Loss

Full list of tools for MSL calculation can be found here .

void calculate_l1_loss(int* indices, int length, float* correct_value, float* coef)

Cross Entropy Loss

Full list of tools for CEL calculation can be found here .

void calculate_cross_entropy_loss(float* correct_value, float* coef)

void calculate_cross_entropy_loss(int index, float coef)

Code

For more details on private variables, methods, and other functionalities performed within the definition of the class, refer to the hpp file and the cpp file .