From 92cbe71e44a75d1a6ba4113dfce199bf046b2b10 Mon Sep 17 00:00:00 2001 From: s434732 Date: Sun, 28 Mar 2021 20:35:54 +0200 Subject: [PATCH] d --- skrypt_zad2.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/skrypt_zad2.sh b/skrypt_zad2.sh index 604043d..71875cb 100644 --- a/skrypt_zad2.sh +++ b/skrypt_zad2.sh @@ -3,13 +3,9 @@ pip install kaggle kaggle datasets download martj42/international-football-results-from-1872-to-2017 --unzip -tail -n +2 results.csv | shuf > results.data.shuf +shuf results.csv | tail -n +"${CUTOFF}" > results.csv_cut.shuf -head -n 1022 results.data.shuf > results.data.test -head -n 2044 results.data.shuf| tail -n 1022 > results.data.dev -tail -n +3066 results.data.shuf > results.data.train - - - -head -n $1 results.data.shuf > lab3.data -cat results.csv lab3.data > lab3.csv \ No newline at end of file +head -n 75384 results.csv_cut.shuf > results.csv_cut.test +head -n 150768 results.csv_cut.shuf | tail -n 75384 > results.csv_cut.dev +tail -n +150769 results.csv_cut.shuf > results.csv_cut.train +wc -l results.csv_cut* \ No newline at end of file