Skip to content

Commit

Permalink
adapt to new keras loss name MeanSquaredError
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerkuou committed May 10, 2024
1 parent b1e7324 commit 553b41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def init_trainning():
model.add(tf.keras.layers.Dense(units=5))
model.add(tf.keras.layers.Dense(units=2))
model.compile(optimizer='adam',
loss=tf.keras.losses.mean_squared_error,
loss=tf.keras.losses.MeanSquaredError,
metrics=['mae'])
model.fit(x=datain, y=dataout, epochs=20, verbose=0, validation_split=0.2)
return model
Expand Down

0 comments on commit 553b41c

Please sign in to comment.