Пример #1
0
 public NeuralNetwork(NeuralNetwork basis)
 {
     Structure = basis.Structure;
     Sections  = new NeuralSection[Structure.Count - 1];
     for (int i = 0; i < Sections.Length; i++)
     {
         Sections[i] = new NeuralSection(basis.Sections[i]);
     }
 }
Пример #2
0
 public NeuralNetwork(params UInt32[] structure)
 {
     this.Structure = new List <UInt32>(structure).AsReadOnly();
     Sections       = new NeuralSection[structure.Length - 1];
     for (int i = 0; i < Sections.Length; i++)
     {
         Sections[i] = new NeuralSection(structure[i], structure[i + 1]);
     }
 }
Пример #3
0
 public NeuralSection(NeuralSection main)
 {
     Weights = new double[main.Weights.Length][];
     for (int i = 0; i < Weights.Length; i++)
     {
         Weights[i] = new double[main.Weights[0].Length];
         for (int k = 0; k < Weights[i].Length; k++)
         {
             Weights[i][k] = main.Weights[i][k];
         }
     }
 }