minor fix

This commit is contained in:
Maciej 2021-03-29 01:58:55 +02:00
parent 572aaeea07
commit 0c243288ea

View File

@ -1,4 +1,4 @@
#curl -OL https://git.wmi.amu.edu.pl/s434784/ium_434784/raw/branch/master/who_suicide_statistics.csv
curl -OL https://git.wmi.amu.edu.pl/s434784/ium_434784/raw/branch/master/who_suicide_statistics.csv
# uciecie nazw kolumn
head -n 1 who_suicide_statistics.csv > names.csv
@ -10,10 +10,10 @@ shuf who_suicide_statistics.csv > data.shuf
# Podzial na 3 pozbiory
#Ustalenie proporcji 6:2:2
let NUMROWS=$(cat data.shuf | wc -l)
let TEST=$((NUMROWS / 10 * 2 ))
let DEV=$((NUMROWS / 10 * 4 ))
let TRAIN=$((NUMROWS - DEV ))
NUMROWS=$(cat data.shuf | wc -l)
TEST=$((NUMROWS / 10 * 2 ))
DEV=$((NUMROWS / 10 * 4 ))
TRAIN=$((NUMROWS - DEV ))
head -n $TEST data.shuf > data.test
head -n $DEV data.shuf | tail -n $TEST > data.dev