karpathy / convnetjs

Deep Learning in Javascript. Train Convolutional Neural Networks (or ordinary ones) in your browser.
MIT License
10.89k stars 2.04k forks source link

MagicNet's convergence #14

Open newebug opened 10 years ago

newebug commented 10 years ago

I try to train magicnet on a simple data set, about 100 data records, it run over 100+ hours and seems will run forever without return. When I input less than 40 records, it would work fine.

karpathy commented 10 years ago

The MagicNet will never stop - the idea is that the longer it runs the better its predictions will be. You have to decide for yourself when you want to stop training. The first time the MagicNet is ready to predict is when it first calls finishedBatch callback, and every time the callback is called, its predictions will improve. Just stop when you get impatient.

newebug commented 10 years ago

Thanks for quick reply.

I train it with less than 40 records data, it will fire finishedBatch quickly, when I train it with 100+ records data, it won't finish after 100+ hours, is these normal?