View source on GitHub |
Deserializes a serialized metric class/function instance.
tf.keras.metrics.deserialize(
config, custom_objects=None
)
Args | |
---|---|
config
|
Metric configuration. |
custom_objects
|
Optional dictionary mapping names (strings) to custom objects (classes and functions) to be considered during deserialization. |
Returns | |
---|---|
A Keras Metric instance or a metric function.
|