Update 'train.py'

This commit is contained in:
Patryk Gałka 2023-05-10 22:39:12 +02:00
parent d07853cce0
commit a324aa2c91

View File

@ -6,6 +6,7 @@ from keras.applications.densenet import layers
from sklearn.model_selection import train_test_split
import tensorflow
EPOCHS = int(os.environ['EPOCHS'])
train_data_x = pandas.read_csv('./X_train.csv')
@ -25,6 +26,6 @@ norm_games_model.compile(
loss=tensorflow.keras.losses.MeanSquaredError(),
optimizer=tensorflow.keras.optimizers.Adam())
norm_games_model.fit(games_all, games_predict, epochs=500)
norm_games_model.fit(games_all, games_predict, epochs=EPOCHS)
norm_games_model.save('test')