metadata_update()
duplicates metrics when updating a single field from None
#1210
Labels
bug
Something isn't working
Describe the bug
When updating evaluation metadata with the
metadata_update()
function, it seems that updating a field value fromNone
to some other value results in the metrics being duplicated.See this Hub PR for an example, where I've simply changed the value of
verify_token
fromNone
to1234
. One sees that e.g.accuracy
is duplicated to include a new "evaluation" element where theverify_token
field is notNone
.Intuitively, I would expect that updating an attribute of
EvalResult
would simply update in-place.Reproduction
Here's the code snippet the produced the above PR (feel free to run it without fear :)):
Logs
No response
System info
The text was updated successfully, but these errors were encountered: