Пример #1
0
Файл: init.cs Проект: MxAR/ANNs
        public static double w = -10; // weight

        #endregion Fields

        #region Methods

        public void init_all()
        {
            init_class IN_02 = new init_class();
            IN_02.pattern_init();
            IN_02.neuron_init();
            IN_02.para_init();
        }
Пример #2
0
 // supervised learning: not
 static void Main(string[] args)
 {
     Console.Write("Program started succesfully || press enter to proceed");
     Console.ReadLine();
     Console.WriteLine("--------------------------------------------------------------------------------");
     Boolean f_02 = false;
     Boolean f_03 = false;
     init_class IN_01 = new init_class();
     do
     {
         IN_01.init_all();
         Console.WriteLine("Do you want to start with n = " + init_class.n + " | w = " + init_class.w + " ?");
         Console.Write("J/N: ");
         if (Console.ReadLine() == "J" || Console.ReadLine() == "j") { f_02 = true; }
     } while (f_02 == false);
     Console.WriteLine("--------------------------------------------------------------------------------");
     learn_class IN_02 = new learn_class();
     do
     {
         error = 0;
         IN_02.learn();
         Console.WriteLine(error + " error(s) occured in the test || do you want to start another round ?");
         Console.Write("J/N: ");
         if (Console.ReadLine() == "J" || Console.ReadLine() == "j") { f_02 = true; }
     } while (f_03 == false);
     Console.WriteLine("--------------------------------------------------------------------------------");
     Console.Write("Program finished succesfully || press enter to exit");
     Console.ReadLine();
 }