16 lines
553 B
Bash
16 lines
553 B
Bash
|
#(Pobranie pliku .csv)
|
||
|
curl -OL https://git.wmi.amu.edu.pl/s434695/ium_434695/raw/branch/master/vgsales.csv
|
||
|
|
||
|
|
||
|
#(Podzielenie pliku csv na test/dev/train)
|
||
|
head -n 1 vgsales.csv > header.csv
|
||
|
tail -n +2 vgsales.csv | shuf > data.shuffled
|
||
|
|
||
|
head -n 266 data.shuffled > games.data.test
|
||
|
head -n 532 data.shuffled | tail -n 266 > games.data.dev
|
||
|
tail -n +333 data.shuffled > games.data.train
|
||
|
|
||
|
cat header.csv games.data.test > test.csv
|
||
|
cat header.csv games.data.dev > dev.csv
|
||
|
cat header.csv games.data.train > train.csv
|