Spaces:
Runtime error
Runtime error
Update modelutil.py
Browse files- 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 =
|
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,
|