fix making out files

This commit is contained in:
pietrzakkuba 2021-05-03 11:59:41 +02:00
parent 085e33a1d4
commit a0b6346b07
3 changed files with 2002 additions and 2002 deletions

File diff suppressed because it is too large Load Diff

View File

@ -28,10 +28,10 @@ test_prediction = lin_reg.predict(test_x)
# zapisane predykcji do plików out # zapisane predykcji do plików out
with open('test-A/out.tsv', 'w') as test_output: with open('test-A/out.tsv', 'w') as test_output:
for prediction in test_prediction: for prediction in test_prediction:
test_output.write(str(prediction) + '\n') test_output.write(str(prediction[0]) + '\n')
with open('dev-0/out.tsv', 'w') as dev_output: with open('dev-0/out.tsv', 'w') as dev_output:
for prediction in dev_prediction: for prediction in dev_prediction:
dev_output.write(str(prediction) + '\n') dev_output.write(str(prediction[0]) + '\n')

File diff suppressed because it is too large Load Diff