Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: What Does train() Method in Pybrain Package Return?

The link here says that trainer.train() returns

a double proportional to the error

What does that mean? I am using BackpropTrainer to train a neural network for classification. So far, my code has returned values less than 1. Does it mean that it validates the training data and returns ratio of number of misclassified samples to the total samples?

like image 796
dc95 Avatar asked Mar 14 '26 20:03

dc95


1 Answers

Reading the documentation it seems that it trains on the data for one epoch. It may be that it doesn't converge in that time, so it returns the mismatch (error).

trainer.trainUntilConvergence() will train on multiple epochs until it converges. It returns a tuple of each convergence mismatch.

like image 176
Peter Wood Avatar answered Mar 16 '26 09:03

Peter Wood



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!