Unable to plot MetricCollection
containing prefix using MetricCollection.plot()
#2411
Labels
Milestone
MetricCollection
containing prefix using MetricCollection.plot()
#2411
🐛 Bug
I want to evaluate and plot the same metrics, namely confusion matrix and ROC curve, during training, validation and testing phase. For this, I set up a base
MetricCollection
which is then cloned three times. The respective prefix, e.g.'train_'
, is added using the prefix argument of theMetricCollection.clone()
function.When trying to plot the
MetricCollection
with the prefix usingMetricCollection.plot()
, aKeyError
exception is thrown. When no prefix is provided,MetricCollection.plot()
works correctly.To Reproduce
Steps to reproduce the behavior...
Fails: with prefix
Code sample
Error message
Works: without prefix
Code sample
Expected behavior
No
KeyError
when plotting aMetricCollection
with a set prefix property.Environment
The text was updated successfully, but these errors were encountered: