VowpalWabbit / vowpal_wabbit

Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning.
https://vowpalwabbit.org
Other
8.49k stars 1.93k forks source link

New line is misinterpreted as example #4635

Closed ataymano closed 1 year ago

ataymano commented 1 year ago

Describe the bug

On linux empty line is misinterpreted as an example.

How to reproduce

data.txt

1 | x:1

command line:

vw -d data.txt -p pred.txt

pred.txt:

0
0.253423
0.253423

Expected pred.txt:

0

Version

9.9.0

OS

Linux

Language

CLI

Additional context

No response