NTMC-Community / MatchZoo

Facilitating the design, comparison and sharing of deep text matching models.
Apache License 2.0
3.84k stars 897 forks source link

Why log metrics using the metric objects as keys in EvaluateAllMetrics? #790

Closed matthew-z closed 5 years ago

matthew-z commented 5 years ago

Describe the Question

EvaluateAllMetrics updates logs using the metric objects as dict keys, which makes difficult to access logs. For example, keras.callbacks.EarlyStopping assumes string keys in logs....

uduse commented 5 years ago

matchzoo metrics have parameters, so only using class names won't work. Using generated names based on metric parameters work, but it's not very different from using objects.

matthew-z commented 5 years ago

Thank you for your kind explanation. I will use a modified version of EvaluateAllMetrics on my own to utilise keras.callbacks.EarlyStopping