ium_434760/script.sh
2021-03-28 23:22:54 +02:00

9 lines
328 B
Bash

kaggle datasets download -d karangadiya/fifa19
unzip -o fifa19.zip
x=$(($CUTOFF/10))
head -n 1 data.csv > header.csv
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