This commit is contained in:
Dominika Grajewska 2020-04-20 17:26:33 +02:00
parent a5eeef1b5b
commit e4b1953db9
3 changed files with 16 additions and 0 deletions

11
changelabels.py Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env python3
import sys
import math
for line in sys.stdin:
if float(line)>0:
print(1)
else:
print(0)

BIN
model.vw Normal file

Binary file not shown.

5
train.sh Normal file
View File

@ -0,0 +1,5 @@
#train
vw -d data.tsv --loss_function logistic -f model.vw
#test
vw -i model.vw -t -d data.tsv -p out.tsv