crobbi commited on
Commit
f02d2b7
1 Parent(s): 87723c9

Update modelutil.py

Browse files
Files changed (1) hide show
  1. modelutil.py +1 -1
modelutil.py CHANGED
@@ -13,7 +13,7 @@ def create_model():
13
 
14
 
15
  LOSS_FUNCTION = tf.keras.losses.SparseCategoricalCrossentropy() # HERE
16
- OPTIMIZER = "ADAM"
17
  METRICS = ["accuracy"]
18
  model.compile(loss=LOSS_FUNCTION,
19
  optimizer=OPTIMIZER,
 
13
 
14
 
15
  LOSS_FUNCTION = tf.keras.losses.SparseCategoricalCrossentropy() # HERE
16
+ OPTIMIZER = tf.keras.optimizers.legacy.Adam()
17
  METRICS = ["accuracy"]
18
  model.compile(loss=LOSS_FUNCTION,
19
  optimizer=OPTIMIZER,