ium_434732/skrypt_zad2.sh

11 lines
396 B
Bash
Raw Normal View History

2021-03-28 19:27:38 +02:00
#!/bin/bash
pip install kaggle
kaggle datasets download martj42/international-football-results-from-1872-to-2017 --unzip
2021-03-28 20:35:54 +02:00
shuf results.csv | tail -n +"${CUTOFF}" > results.csv_cut.shuf
2021-03-28 19:27:38 +02:00
2021-03-28 20:42:26 +02:00
head -n 1000 results.csv_cut.shuf > results.csv_cut.test
head -n 2000 results.csv_cut.shuf | tail -n 1000 > results.csv_cut.dev
tail -n +2001 results.csv_cut.shuf > results.csv_cut.train
2021-03-28 20:35:54 +02:00
wc -l results.csv_cut*