ium_434760/script.sh

9 lines
328 B
Bash
Raw Normal View History

2021-03-28 22:59:43 +02:00
kaggle datasets download -d karangadiya/fifa19
2021-03-28 22:13:52 +02:00
unzip -o fifa19.zip
2021-03-28 22:59:43 +02:00
x=$(($CUTOFF/10))
2021-03-28 22:13:52 +02:00
head -n 1 data.csv > header.csv
2021-03-28 22:59:43 +02:00
tail -n +2 data.csv| tail -n $CUTOFF | shuf > data_shuf.csv
head -n $(($x*2)) data_shuf.csv > test.csv
head -n $(($x*2)) data_shuf.csv | tail -n 3330 > validation.csv
tail -n $(($x*6)) data_shuf.csv > train.csv