Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I calculate or monitor the training of a neural network in pybrain?

I have a neural network n pybrain,with two inputs,a hidden layer and a output layer.I use the following to train:

trainer = BackpropTrainer(net,ds)
trainer.trainUntilConvergence()

net is the neural network and ds is the train data.

My question is if and how I can calculate the time needed to complete the training or how can I monitor the progress of the training.Thanks.

like image 998
IordanouGiannis Avatar asked Feb 02 '23 08:02

IordanouGiannis


1 Answers

You could always subclass BackpropTrainer (source code here) and override trainUntilConvergence if using maxEpochs , track the percentage of completeness using the ratio between epochs and epochs.

If not using maxEpochs you could always make an educated guess of the number of epochs remaining based on the average rate of change in the validationerrors and the size of continueEpochs. Or merely just examine the rate of change in validationerrors. If you wanted to map epochs to time you would have to profile the time of each epoch and store them.

like image 173
Appleman1234 Avatar answered Feb 05 '23 17:02

Appleman1234