Пример #1
0
        static void Main(string[] args)
        {
            double[][][] d = IO.LoadAllText(@"C:\DNN\test.txt");
            double[][] o = new DNN(@"C:\DNN\a.dnn").Compute(d[0]);

            ShowText(d[0], d[1], o);
            Console.ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            double[][][] io = IO.LoadAllText(@"C:\DNN\train.txt");
            DNN d = new DNN(@"C:\DNN\a.dnn");
            new Task(() => { d.Train(io[0], io[1]); }).Start();

            while (true)
            {
                Thread.Sleep(1000 * 10);
                Console.WriteLine(d.e);
                d.Save();
            }
        }
Пример #3
0
 public static void ComputeImg(string s)
 {
     double[] d = IO.LoadImg(s);
     double[][] o = new DNN(@"C:\DNN\a.dnn").Compute(new double[][] { d });
     Console.WriteLine(IO.double2int(o[0]));
 }