Search code examples
daemonvowpalwabbit

How to run vowpal wabbit in daemon mode


I want to run vowpal wabbit in daemon mode training. I found the stackoverflow link Read data from memory in Vowpal Wabbit? , but did not get how to specify model file name. What I am doing is run

vw --save_resume -f ob/e/nsefut/VWDaemon/model.vw --quiet --daemon --port 26542

and then send examples. What I did get from the link is that I have to send tags starting "save" to make vw understand that its a training data. So, I sent it as

 echo '2 save| b:1.0 c:2.8 ' | netcat localhost 26542

But I cant locate the model file. It would be really great if there is some tutorial for it.

edit:

Plus in between training in daemon mode, I also want to be able to see the coefficients till that point.


Solution

  • You must use echo 'save' | netcat localhost 26542 to instruct vw to dump the current regressor coefficients into the model file. As for obtaining coeffs values pls refer to this answer. In short: you can't.