Update 'train.py'
This commit is contained in:
parent
d07853cce0
commit
a324aa2c91
3
train.py
3
train.py
@ -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')
|
Loading…
Reference in New Issue
Block a user