disable header in pandas dataframes

This commit is contained in:
Mateusz 2022-05-11 23:43:26 +02:00
parent 5f7fe04d90
commit 8e53829ffd
3 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
0 0
0
1 1
0 0
0 0

1 0
0
2 1
3 0
4 0

4
run.py
View File

@ -43,5 +43,5 @@ train_bayes(model, train_x, train_y)
predicted = model.classify(dev_x) predicted = model.classify(dev_x)
predicted2 = model.classify(test_x) predicted2 = model.classify(test_x)
pd.DataFrame(predicted).to_csv('dev-0/out.tsv', sep='\t', encoding="utf-8", index=False) pd.DataFrame(predicted).to_csv('dev-0/out.tsv', sep='\t', header=None, encoding="utf-8", index=False)
pd.DataFrame(predicted2).to_csv('test-A/out.tsv', sep='\t', encoding="utf-8", index=False) pd.DataFrame(predicted2).to_csv('test-A/out.tsv', sep='\t', header=None, encoding="utf-8", index=False)

View File

@ -14,7 +14,6 @@
0 0
0 0
0 0
0
1 1
0 0
0 0

1 0
14 0
15 0
16 0
0
17 1
18 0
19 0