add baseline mean from train
This commit is contained in:
parent
97d368f880
commit
a8a0ef5ace
14
baseline_mean_from_train/run.py
Normal file
14
baseline_mean_from_train/run.py
Normal file
@ -0,0 +1,14 @@
|
||||
import pandas as pd
|
||||
|
||||
r = pd.read_csv('../train/expected.tsv', header = None)
|
||||
mean = str(float(r.mean()))
|
||||
|
||||
with open('dev-0/out.tsv','w') as f_out, open('../dev-0/in.tsv', 'r') as f_in:
|
||||
pass
|
||||
for line in f_in:
|
||||
f_out.write(mean + '\n')
|
||||
|
||||
with open('test-A/out.tsv','w') as f_out, open('../test-A/in.tsv', 'r') as f_in:
|
||||
pass
|
||||
for line in f_in:
|
||||
f_out.write(mean + '\n')
|
119067
dev-0/out.tsv
Normal file
119067
dev-0/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
118659
test-A/out.tsv
Normal file
118659
test-A/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user