Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get raw predictions from Vowpal Wabbit in daemon mode

I'm starting Vowpal Wabbit in daemon mode with the following command:

vw --loss_function hinge --ect 250 --quiet --passes 5 -b 25 --daemon --port 10001 --pid_file pidfile

This works well and I'm able to get predictions by connecting to the socket and sending my data and reading an answer.

My question is, is it possible to also get the raw predictions passed over the socket when in daemon mode?

Instead of only 1.000000 as an answer, I'd like to get something 1:-2.31425 2:-3.98557 3:-3.97967 instead.

like image 851
Osvald Ivarsson Avatar asked Aug 13 '14 09:08

Osvald Ivarsson


1 Answers

There isn't a way to do this with VW currently. The best option is to write the raw predictions to a file and read from that file.

vw --loss_function hinge -r raw_pred --ect 250 --quiet --passes 5 -b 25 --daemon --port 10001 --pid_file pidfile
like image 170
Marissa Novak Avatar answered Oct 03 '22 03:10

Marissa Novak