update download.sh

This commit is contained in:
Maciej Czajka 2022-05-02 13:55:40 +02:00
parent b6d93b3199
commit 8c12647ba6

View File

@ -5,9 +5,9 @@ dataset_operation() {
len2=$(($len1/10)) len2=$(($len1/10))
len3=$(($len2*2)) len3=$(($len2*2))
len4=$(($len3+1)) len4=$(($len3+1))
head -n $len2 all_games.csv.shuf > all_games.csv.test head -n $len2 all_games.csv.shuf > all_games_test.csv
head -n $len3 all_games.csv.shuf | tail -n $len2 > all_games.csv.dev head -n $len3 all_games.csv.shuf | tail -n $len2 > all_games_dev.csv
tail -n +$len4 all_games.csv.shuf > all_games.csv.train tail -n +$len4 all_games.csv.shuf > all_games_train.csv
cp all_games.csv /dane/all_games.csv cp all_games.csv /dane/all_games.csv
wc -l all_games.csv.* wc -l all_games.csv.*
} }