Update 'create-dataset.py'

This commit is contained in:
Patryk Gałka 2023-04-19 17:06:00 +02:00
parent d7870c0d2b
commit d4b1bd6057

View File

@ -1,6 +1,6 @@
import pandas import pandas
import os import os
#from sklearn.model_selection import train_test_split from sklearn.model_selection import train_test_split
CUTOFF = int(os.environ['CUTOFF']) CUTOFF = int(os.environ['CUTOFF'])
@ -19,8 +19,8 @@ video_games = video_games.sample(CUTOFF)
X, Y = video_games, video_games X, Y = video_games, video_games
# SPLIT BETWEEN DEV, TRAINS, AND TEST # SPLIT BETWEEN DEV, TRAINS, AND TEST
#X_train, X_temp, Y_train, Y_temp = train_test_split(X, Y, test_size=0.3, random_state=1) X_train, X_temp, Y_train, Y_temp = train_test_split(X, Y, test_size=0.3, random_state=1)
#X_dev, X_test, Y_dev, Y_test = train_test_split(X_temp, Y_temp, test_size=0.3, random_state=1) X_dev, X_test, Y_dev, Y_test = train_test_split(X_temp, Y_temp, test_size=0.3, random_state=1)
#X_train.to_csv('X_train.csv', index=False) #X_train.to_csv('X_train.csv', index=False)
#X_dev.to_csv('X_dev.csv', index=False) #X_dev.to_csv('X_dev.csv', index=False)