iven file into two, 80% of lines will go to the first, the rest to the second. We use a random seed so that you can get exactly the same files.

Vowpal Wabbit

Since data is in libsvm format, we need to convert it for VW. The format in this case would differ from libsvm only by something like “|x” between the label and the rest of the line. To speed things up, let’s skip the text file and save data as VW’s binary/cache file. Instead of saving the output to a file, we send it to standard output (Unix territory) and pipe it directly to VW, which will train and create a cache file as a side effe