kittydar icon indicating copy to clipboard operation
kittydar copied to clipboard

How long is train_svm supposed to take

Open antonywu opened this issue 11 years ago • 1 comments

Honestly, thank you for creating this project. It is more or less a learning experience for me. I read about neural network and svm in the past, but never fully grasp the ideas for me to successfully apply these concepts.

With the README, I followed the instructions. The train_network seems to finish the training within an hour or two, but I still need to play with it further (plus study the code).

As for train_svm, well, it has been running for almost 39 hours straight with no results

svm antony$ node train-svm.js -p ../POSITIVES -n ../NEGATIVES
training on 18867
feature size 3388

From my end, I can see node is using about 598Mb of memory with 101% of CPU (I guess it takes over one of the dual core). I can't tel if it is stuck in an infinite loop or it is actually doing something.

So has anyone tried train_svm? How long did it take for train-svm to finish?

antonywu avatar Apr 23 '13 17:04 antonywu

I don't know how long it would take to train with all the data. I would limit the number of samples you train on. try --posLimit 500 --negLimit 500 to try it out (that shouldn't take more than an hour), then increase the limit. I've done at most 5000 samples of each and it's taken over a day.

harthur avatar Apr 23 '13 18:04 harthur