예제 #1
0
파일: Network.cs 프로젝트: zutadeli/Net1
        public Network(string filename)
            : this()
        {
            Filename = filename;

            Trainer = new Trainer(Filename);

            CreateLayers();
            ConnectLayers();

            Metrics = new PerformanceMetrics();

            Trainer.NextCase(Ip, 0);

            ScreenUpdateData.DataChanged();
        }
예제 #2
0
파일: Network.cs 프로젝트: zutadeli/Net1
        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();
        }