ff_layer : add neuron
This commit is contained in:
@@ -48,6 +48,16 @@ namespace FeedForward {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Function adds new neuron
|
||||
* @returns Newly added neuron
|
||||
*/
|
||||
Neuron& addNeuron(const ActivationFunction::ActivationFunction &activationFunction = ActivationFunction::Sigmoid()) {
|
||||
auto neuron = new Neuron(neurons.size(),activationFunction);
|
||||
neurons.push_back(neuron);
|
||||
return *neuron;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief This is a virtual function for selecting neuron
|
||||
* @param neuron is position in layer
|
||||
|
||||
Reference in New Issue
Block a user