ium_434695/skrypt.sh

20 lines
622 B
Bash
Raw Normal View History

2021-03-28 22:32:17 +02:00
#Pobranie pliku .csv
curl -OL https://git.wmi.amu.edu.pl/s434695/ium_434695/raw/branch/master/vgsales.csv
2021-03-28 21:02:12 +02:00
2021-03-28 22:32:17 +02:00
#Podzielenie pliku csv na test/dev/train
head -n 1 vgsales.csv > header.csv
tail -n +2 vgsales.csv | shuf > data.shuffled
2021-03-28 21:02:12 +02:00
2021-03-28 22:32:17 +02:00
head -n 3320 data.shuffled > games.data.test
head -n 6640 data.shuffled | tail -n 3320 > games.data.dev
tail -n +6641 data.shuffled > games.data.train
2021-03-28 21:02:12 +02:00
2021-03-28 22:32:17 +02:00
cat header.csv games.data.test > test.csv
cat header.csv games.data.dev > dev.csv
cat header.csv games.data.train > train.csv
2021-03-28 21:29:46 +02:00
2021-03-28 22:32:17 +02:00
#Obcinanie danych
head -n $1 data.shuffled > obcietedane.data
cat header.csv obcietedane.data > obcietedane.csv