Convert classification metric from str name to object if needed.
TFSimilarity.callbacks.make_classification_metric(
name: str =
metric | ClassificationMetric() or metric name. |
ValueError | Unknown metric name: metric, typo? |
ClassificationMetric | Instantiated metric if needed. |