Maciej Czajka
24b2211741
All checks were successful
s444356-training/pipeline/head This commit looks good
17 lines
650 B
Bash
Executable File
17 lines
650 B
Bash
Executable File
dataset_operation() {
|
|
tail -n +2 all_games.csv | shuf > all_games.csv.s
|
|
head -n $CUTOFF all_games.csv.s > ./all_games.csv.shuf
|
|
len1=$(cat ./all_games.csv.shuf | wc -l)
|
|
len2=$(($len1/10))
|
|
len3=$(($len2*2))
|
|
len4=$(($len3+1))
|
|
head -n $len2 all_games.csv.shuf > all_games.test.csv
|
|
head -n $len3 all_games.csv.shuf | tail -n $len2 > all_games.dev.csv
|
|
tail -n +$len4 all_games.csv.shuf > all_games.train.csv
|
|
cp all_games.csv /dane/all_games.csv
|
|
wc -l all_games.csv.*
|
|
}
|
|
|
|
kaggle datasets download -d deepcontractor/top-video-games-19952021-metacritic
|
|
unzip top-video-games-19952021-metacritic.zip
|
|
dataset_operation |