SparseCategoricalAccuracy: losses → metrics

This commit is contained in:
Starbeamrainbowlabs 2022-10-21 16:51:20 +01:00
parent 612735aaae
commit 8195318a42
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -55,7 +55,7 @@ def model_rainfallwater_segmentation(metadata, shape_water_out, model_arch="conv
model.compile(
optimizer="Adam",
loss=tf.keras.losses.SparseCategoricalCrossentropy(),
metrics=[tf.keras.losses.SparseCategoricalAccuracy()]
metrics=[tf.keras.metrics.SparseCategoricalAccuracy()]
)
return model