예제 #1
0
 // Constructeurs
 public Neuron(int nConnection = 0)
 {
     Equation = new SigmoidActivation();
     Weights  = new double[nConnection];
     Randomize();
 }
예제 #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);
 }