Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="nbNeurons"></param>
 /// <param name="nConnections"></param>
 /// <param name="equation"></param>
 public Layer(int nbNeurons, int nConnections, IActivationEquation equation)
 {
     Equation = equation;
     Neurons  = new Neuron[nbNeurons];
     InitialiserNeurons(nConnections);
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="nbNeurons"></param>
 /// <param name="nConnections"></param>
 public Layer(int nbNeurons, int nConnections = 0)
 {
     Equation = new SigmoidActivation();
     Neurons  = new Neuron[nbNeurons];
     InitialiserNeurons(nConnections);
 }