fix paths to csv

This commit is contained in:
Dawid 2021-03-28 21:17:24 +02:00
parent 14cde04d42
commit 61e52526f7

10
data.sh
View File

@ -2,10 +2,10 @@
echo "pobieram dane" echo "pobieram dane"
curl -OL https://git.wmi.amu.edu.pl/s434804/ium_434804/raw/branch/master/country_vaccinations.csv curl -OL https://git.wmi.amu.edu.pl/s434804/ium_434804/raw/branch/master/country_vaccinations.csv
echo "CUTOFF danych" echo "CUTOFF danych"
head -n -1 country_vaccinations.csv | tail -n +$((${CUTOFF}+1)) > country_vaccinations.csv | shuf > vaccines.csv.shuf head -n -1 ./country_vaccinations.csv | tail -n +$((${CUTOFF}+1)) > ./country_vaccinations.csv | shuf > ./vaccines.csv.shuf
echo "Wielkość zbioru" echo "Wielkość zbioru"
wc -l vaccines.csv wc -l ./vaccines.csv
head -n 1468 vaccines.csv.shuf > test.csv head -n 1468 vaccines.csv.shuf > ./test.csv
head -n 2936 vaccines.csv.shuf | tail -n 1468 > validation.csv head -n 2936 vaccines.csv.shuf | tail -n 1468 > ./validation.csv
tail -n +2936 vaccines.csv.shuf > train.csv tail -n +2936 vaccines.csv.shuf > ./train.csv
wc -l *.csv wc -l *.csv