You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtorchmetricsimportMetricCollectionfromtorchmetrics.textimportBLEUScorescores=MetricCollection({
"bleu-1": BLEUScore(1),
"bleu-2": BLEUScore(2),
"bleu-3": BLEUScore(3),
"bleu-4": BLEUScore(4),
})
preds= ['the cat is on the mat']
target= [['there is a cat on the mat', 'a cat is on the mat']]
scores.update(preds, target)
print(scores.compute())
🐛 Bug
MetricCollection.update
gives identical resultsTo Reproduce
This gives the following result
which is incorrect
Expected behavior
Environment
torchmetrics==1.4.1
torch==2.2.2
The text was updated successfully, but these errors were encountered: