SuperNN
1.0.0
|
Array of neurons. More...
Public Member Functions | |
Layer () | |
virtual | ~Layer () |
void | add_neuron (Neuron &n) |
Adds a neuron to the layer. More... | |
void | add_neurons (unsigned n_neurons, bool bias=false) |
Adds a number of neurons to the layer. More... | |
void | connect (unsigned to_layer, unsigned to_neuron) |
Connects all the neurons of the layer to a neuron. More... | |
void | set_activation (ActFuncType type, double s=1) |
Sets the activation function for all the neurons currently in the layer. More... | |
Array of neurons.
Neurons are only permitted to have connections to latter layers.
Definition at line 36 of file network.hpp.
SuperNN::Layer::Layer | ( | ) |
Definition at line 30 of file network.cpp.
|
virtual |
Definition at line 34 of file network.cpp.
void SuperNN::Layer::add_neuron | ( | Neuron & | n | ) |
Adds a neuron to the layer.
n | Neuron to be added |
Definition at line 38 of file network.cpp.
void SuperNN::Layer::add_neurons | ( | unsigned | n_neurons, |
bool | bias = false |
||
) |
Adds a number of neurons to the layer.
n_neurons | Number of neurons to add |
bias | True to add bias neurons, false otherwise |
Definition at line 43 of file network.cpp.
void SuperNN::Layer::connect | ( | unsigned | to_layer, |
unsigned | to_neuron | ||
) |
Connects all the neurons of the layer to a neuron.
to_layer | Layer where the target neuron is located |
to_neuron | Position of the target neuron in it's layer |
Definition at line 60 of file network.cpp.
void SuperNN::Layer::set_activation | ( | ActFuncType | type, |
double | s = 1 |
||
) |
Sets the activation function for all the neurons currently in the layer.
type | Activation function type |
s | Activation function steepness |
Definition at line 54 of file network.cpp.