This commit is contained in:
Maciej Czajka 2022-04-02 14:17:30 +02:00
parent b72fb2f43f
commit d2765a4402
2 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,7 @@ def dataset_information(games):
# os.system("unzip top-video-games-19952021-metacritic.zip") # os.system("unzip top-video-games-19952021-metacritic.zip")
# wczytanie danych # wczytanie danych
games=pd.read_csv('all_games.csv.shuf') games=pd.read_csv('all_games1.csv')
# usunięcie 5 wyników "Stadia" # usunięcie 5 wyników "Stadia"
delete_stadia(games) delete_stadia(games)

View File

@ -8,6 +8,7 @@ dataset_operation() {
head -n $len2 all_games.csv.shuf > all_games.csv.test head -n $len2 all_games.csv.shuf > all_games.csv.test
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.csv.dev
tail -n +$len4 all_games.csv.shuf > all_games.csv.train tail -n +$len4 all_games.csv.shuf > all_games.csv.train
cp all_games.csv.shuf /app/all_games1.csv
wc -l all_games.csv.* wc -l all_games.csv.*
} }