cutoff
This commit is contained in:
parent
0d1787fe23
commit
5f59d55f5d
@ -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
|
head -n "$1" avocado-updated-2020-shuf.csv > avocado-2020.csv
|
||||||
TRUNCATED_SIZE=$(wc -l avocado-2020.csv | awk '{print $1}')
|
TRUNCATED_SIZE=$(wc -l avocado-2020.csv | awk '{print $1}')
|
||||||
declare -i test_size=0,2*$TRUNCATED_SIZE
|
declare -i test_size= $((0,2*$TRUNCATED_SIZE))
|
||||||
declare -i dev_size=2*0,2*$TRUNCATED_SIZE
|
declare -i dev_size=$((2*0,2*$TRUNCATED_SIZE))
|
||||||
declare -i train_size=2*0,2*$TRUNCATED_SIZE+1
|
declare -i train_size=$((2*0,2*$TRUNCATED_SIZE+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
|
||||||
|
Loading…
Reference in New Issue
Block a user