mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-26 02:43:02 +00:00
SparseCategoricalAccuracy: losses → metrics
This commit is contained in:
parent
612735aaae
commit
8195318a42
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ def model_rainfallwater_segmentation(metadata, shape_water_out, model_arch="conv
|
||||||
model.compile(
|
model.compile(
|
||||||
optimizer="Adam",
|
optimizer="Adam",
|
||||||
loss=tf.keras.losses.SparseCategoricalCrossentropy(),
|
loss=tf.keras.losses.SparseCategoricalCrossentropy(),
|
||||||
metrics=[tf.keras.losses.SparseCategoricalAccuracy()]
|
metrics=[tf.keras.metrics.SparseCategoricalAccuracy()]
|
||||||
)
|
)
|
||||||
|
|
||||||
return model
|
return model
|
Loading…
Reference in a new issue