Example #1
0
        void Network_EndEpochEvent(object sender, NeuronDotNet.Core.TrainingEpochEventArgs e)
        {
            INetwork network = (INetwork) sender;

            results[iteration] = (float)network.MeanSquaredError;
            results[iteration + 1] = (float) stopWatch.Elapsed.TotalMilliseconds;

            iteration += 2;
            //Updating the UI thread bottlenecks performance
            if (updateCount++ > 100)
            {
                changeThreadProgress(Int32.Parse(Thread.CurrentThread.Name), network.MeanSquaredError, e.TrainingIteration,"Optimising");
                updateCount = 0;
            }
        }
Example #2
0
 //Set neural network
 public virtual void setNeural(NeuronDotNet.Core.Network network)
 {
 }
Example #3
0
        void Network_EndEpochEvent(object sender, NeuronDotNet.Core.TrainingEpochEventArgs e)
        {
            INetwork network = (INetwork) sender;

            //Updating the UI thread bottlenecks performance
            if (stopWatch.ElapsedMilliseconds > 100)
            {
                changeThreadProgress(Int32.Parse(Thread.CurrentThread.Name), network.MeanSquaredError, e.TrainingIteration,"Optimising");
                stopWatch.Reset();
                stopWatch.Start();
            }
        }