fix data.sh

This commit is contained in:
Dawid 2021-03-28 21:23:36 +02:00
parent 61e52526f7
commit d0f70b12de
2 changed files with 4 additions and 3 deletions

2
Jenkinsfile vendored
View File

@ -6,7 +6,7 @@ pipeline{
stages{
stage('Stage 1'){
steps{
echo 'Hello World!'
echo 'Init Jenkins File!'
}
}
stage('checkout: Check out from version control'){

View File

@ -2,10 +2,11 @@
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
shuf ./country_vaccinations.csv > ./vaccines.csv | tail -n +$((${CUTOFF})) > ./vaccines.csv
wc -l ./imdb_movies.csv
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
wc -l ./*.csv