From c903c154a1eba6d90b9d8b382faef92a36aa3ffe Mon Sep 17 00:00:00 2001 From: s434695 Date: Sun, 28 Mar 2021 21:29:46 +0200 Subject: [PATCH] hotfix v3 --- skrypt.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/skrypt.sh b/skrypt.sh index 37792f2..34d5815 100644 --- a/skrypt.sh +++ b/skrypt.sh @@ -1,15 +1,19 @@ - #(Pobranie pliku .csv) + #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) + #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 + 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 cat header.csv games.data.test > test.csv cat header.csv games.data.dev > dev.csv cat header.csv games.data.train > train.csv + + #Obcinanie danych + head -n $1 data.shuffled > obcietedane.data + cat header.csv obcietedane.data > obcietedane.csv