Exemplo n.º 1
0
 public NeuralNetwork(int inputSize, int[] neurons, double[] weightsLimits, TransitionFunction tf, bool useBias)
 {
     AbstractNeuralLayer[] layers = new AbstractNeuralLayer[neurons.Length];
     for (int i = 0; i < neurons.Length; i++)
     {
         layers[i] = new NeuralLayer(inputSize, neurons[i], true, weightsLimits, tf, useBias);
         inputSize = neurons[i];
     }
     this.layers = layers;
 }
Exemplo n.º 2
0
 public NeuralNetwork(AbstractNeuralLayer[] layers)
 {
     this.layers = layers;
 }