public ThreadedTrainer(Neural_Network network, Entery[] samples)
 {
     this.network = network;
     this.samples = samples;
     thread       = new Thread(new ThreadStart(Train));
     thread.Start();
 }
Example #2
0
 public Layer(Neural_Network_Copy_Reference reference, int depth)
 {
     biases     = (double[])Neural_Network.DeepClone(reference.biases[depth]);
     weights    = (double[, ])Neural_Network.DeepClone(reference.weights[depth]);
     this.depth = ++depth;
     if (depth < reference.biases.GetLength(0))
     {
         child = new Layer(reference, depth);
     }
 }
 public Network_Pool(int count, int[] structure)
 {
     if (count % 2 != 0)
     {
         count++;
     }
     networks = new Neural_Network[count];
     for (int i = 0; i < count; i++)
     {
         networks[i] = new Neural_Network(structure);
     }
 }