I have the following lines in my evaluate loop
accuracy_metric = evaluate.load("accuracy")
f1_metric = evaluate.load("f1")
I get the following error:
2 def evaluate(dataloader, model, loss_fn, device):
----> 3 accuracy_metric = evaluate.load(“accuracy”)
4 f1_metric = evaluate.load(“f1”)
6 model.eval()
AttributeError: ‘function’ object has no attribute ‘load’
Can you help tell me why?