Ejemplo n.º 1
0
        //	@Override
        //	public void update(Observable arg0, Object arg1) {
        //		SupervisedLearning rule = (SupervisedLearning)arg0;
        //		System.out.println( "Training, Network Epoch " + rule.getCurrentIteration() + ", Error:" + rule.getTotalNetworkError());
        //	}

        public virtual void handleLearningEvent(LearningEvent @event)
        {
            SupervisedLearning rule = (SupervisedLearning)@event.getSource();

            System.Console.WriteLine("Training, Network Epoch " + rule.CurrentIteration + ", Error:" + rule.TotalNetworkError);
        }
Ejemplo n.º 2
0
            public virtual void handleLearningEvent(LearningEvent @event)
            {
                BackPropagation bp = (BackPropagation)@event.getSource();

                foldErrors[bp.CurrentIteration - 1] += bp.TotalNetworkError / foldSize;
            }