# Evaluate.load not working

**URL:** <https://discuss.huggingface.co/t/evaluate-load-not-working/61430>\
**Category:** Beginners\
**Created:** [November 7, 2023, 8:50pm UTC](https://discuss.huggingface.co/t/evaluate-load-not-working/61430 "2023-11-07T20:50:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prit1205](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prit1205](https://discuss.huggingface.co/u/prit1205)\
**Post date:** [November 7, 2023, 8:50pm UTC](https://discuss.huggingface.co/t/evaluate-load-not-working/61430/1 "2023-11-07T20:50:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Adesoji7](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@Adesoji7](https://discuss.huggingface.co/u/Adesoji7)\
**Post date:** [July 31, 2024, 3:55pm UTC](https://discuss.huggingface.co/t/evaluate-load-not-working/61430/2 "2024-07-31T15:55:35Z")

</div>

i have the same issue too
