public Neural_Network(string location)
        {
            File_Maneger file_maneger = new File_Maneger(location);

            Structure = file_maneger.GetStructure();
            input     = new Layer(file_maneger, Structure, 1);
        }
        public void Export(string location)
        {
            File_Maneger file_maneger = new File_Maneger(location);

            file_maneger.Erase();
            file_maneger.WriteStructure(Structure);
            input.Export(file_maneger);
        }
Example #3
0
 public void Export(File_Maneger file_Manager)
 {
     file_Manager.Export(depth, weights, biases);
     if (child != null)
     {
         child.Export(file_Manager);
     }
 }
Example #4
0
 public Layer(File_Maneger file_maneger, int[] structure, int depth)
 {
     this.depth = depth;
     weights    = new double[structure[depth], structure[depth - 1]];
     biases     = new double[structure[depth]];
     file_maneger.LoadNext(weights, biases);
     if (file_maneger.IsMore())
     {
         child = new Layer(file_maneger, structure, depth + 1);
     }
 }