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

11 lines
474 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"
head -n -1 country_vaccinations.csv | tail -n +$((${CUTOFF}+1)) > country_vaccinations.csv | shuf > vaccines.csv.shuf
echo "Wielkość zbioru"
wc -l vaccines.csv
head -n 1468 vaccines.csv.shuf > test.csv
head -n 2936 vaccines.csv.shuf | tail -n 1468 > validation.csv
tail -n +2936 vaccines.csv.shuf > train.csv
wc -l *.csv