Пример #1
0
        public Network(string filename)
            : this()
        {
            Filename = filename;

            Trainer = new Trainer(Filename);

            CreateLayers();
            ConnectLayers();

            Metrics = new PerformanceMetrics();

            Trainer.NextCase(Ip, 0);

            ScreenUpdateData.DataChanged();
        }
Пример #2
0
        public void TrainCase()
        {
            if (Trainer.CurrCaseNum == 0 && Trainer.CurrCaseNum != Trainer.LastCaseNum)               //new epoch
            {
                statsInitialiseEpoch();
            }

            Lr.Update();
            statsUpdate_Case();

            //when back at case 0 - perform epoch end tasks
            if (Trainer.CurrCaseNum == Trainer.NumCases - 1)
            {
                statsUpdate_Epoch();
                adjustNetworkParams();
            }

            ScreenUpdateData.DataChanged();
        }