# Problem: target_metric only supports string. And if metrics defined in model is provided as Metric objects, the match may fail. # Solution: turn string to metric objects and then compare target_metric and metrics. Add some unit tests to verify it.