View source on GitHub |
Deserializes a serialized metric class/function instance.
tf.keras.metrics.deserialize(
config, custom_objects=None, use_legacy_format=False
)
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.
|