most common value in train

This commit is contained in:
kubapok 2021-07-06 10:39:57 +02:00
parent c8a53ba235
commit 161712a7a4
3 changed files with 297453 additions and 0 deletions

149134
dev-0/out.tsv Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
import pandas as pd
r_out = pd.read_csv('../train/expected.tsv', names = ('class',))
most_common = r_out['class'].value_counts().idxmax()
for dataset in 'dev-0', 'test-A':
with open(f'../{dataset}/out.tsv', 'w') as f_out, open(f'../{dataset}/in.tsv', 'r') as f_in:
for line_in in f_in:
f_out.write(most_common + '\n')

148308
test-A/out.tsv Normal file

File diff suppressed because it is too large Load Diff