This commit is contained in:
patrycjalazna 2021-03-28 17:47:32 +02:00
parent 49673663fc
commit 473ddf5712

View File

@ -17,9 +17,9 @@ head -n -1 avocado-updated-2020.csv | shuf > avocado-updated-2020-shuf.csv
head -n "$1" avocado-updated-2020-shuf.csv > avocado-2020.csv head -n "$1" avocado-updated-2020-shuf.csv > avocado-2020.csv
let truncated_size=$(wc -l avocado-2020.csv | awk '{print $1}') let truncated_size=$(wc -l avocado-2020.csv | awk '{print $1}')
let test_size=$((0.2*$truncated_size)) let test_size=$(($truncated_size*2/10))
let dev_size=$((2*0.2*$truncated_size)) let dev_size=$(($truncated_size*2*2/10))
let train_size=$((2*0.2*$truncated_size+1)) let train_size=$(($truncated_size*2*2/10+1))
# podzial na train/dev/test 6/2/2 # podzial na train/dev/test 6/2/2
head -n $test_size avocado-2020.csv > avocado-updated-2020-test.csv head -n $test_size avocado-2020.csv > avocado-updated-2020-test.csv