14 # include "ANN/matrix.h"
41 ANNLayer(
unsigned int num_inputs,
unsigned int num_neurons,
42 double min,
double max,
FActivate activation);
~ANNLayer(void)
Destructor.
Definition: ann_layer.cc:51
void setOutputs(Matrix< double > const &outputs)
Set the outputs matrix.
Definition: ann_layer.cc:101
void Activate(Matrix< double > const &inputs)
Activate the current layer and set the matrix of outputs.
Definition: ann_layer.cc:125
Matrix< double > const & getBias(void) const
Get the bias matrix of the neural network.
Definition: ann_layer.cc:73
Define a layer of a neural network.
Definition: ann_layer.h:22
void setBias(Matrix< double > const &bias)
Set the matrix of bias.
Definition: ann_layer.cc:96
double(* FActivate)(double)
Function pointer of an activation function.
Definition: ann_layer.h:31
Contains all the objects that provide the management for the genetic algorithm with neural networks...
Definition: ann_exception.h:16
void setActivationFunction(FActivate f)
Set the activation function of the layer.
Definition: ann_layer.cc:106
ANNLayer(void)
Constructor.
Definition: ann_layer.cc:24
FActivate getActivationFunction(void) const
Get the activation function of the current layer.
Definition: ann_layer.cc:83
Matrix< double > const & getOutputs(void) const
Get the outputs matrix of the neural network. GANN::Matrix const&.
Definition: ann_layer.cc:68
Matrix< double > const & getWeights(void) const
Get the weights matrix of the neural network.
Definition: ann_layer.cc:58
void setWeights(Matrix< double > const &weights)
Set the matrix of weights.
Definition: ann_layer.cc:91