ium_434804/data.sh
2021-03-28 21:27:59 +02:00

11 lines
443 B
Bash

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