From 01c9e7d03f4d385841f924d07c322caec26f83aa Mon Sep 17 00:00:00 2001 From: patrycjalazna Date: Sun, 28 Mar 2021 17:23:22 +0200 Subject: [PATCH] cutoff --- avocado-preprocessing.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/avocado-preprocessing.sh b/avocado-preprocessing.sh index a8b2722..7add3cf 100755 --- a/avocado-preprocessing.sh +++ b/avocado-preprocessing.sh @@ -16,9 +16,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 declare -i truncated_size=$(wc -l avocado-2020.csv | awk '{print $1}') -let test_size= $((0,2*$truncated_size)) -let dev_size=$((2*0,2*$truncated_size)) -let train_size=$((2*0,2*$truncated_size+1)) +let test_size= $((0.2*$truncated_size)) +let dev_size=$((2*0.2*$truncated_size)) +let train_size=$((2*0.2*$truncated_size+1)) # podzial na train/dev/test 6/2/2 head -n $test_size avocado-2020.csv > avocado-updated-2020-test.csv