# Shockingly Incorrect Evaluate Function in Huggingface API

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fshockingly-incorrect-evaluate-function-in-huggingface-api%2F60848%3E%5C
**Category:** 🤗Transformers\
**Created:** [November 2, 2023, 4:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fshockingly-incorrect-evaluate-function-in-huggingface-api%2F60848 "2023-11-02T16:08:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sayan01](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Sayan01](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSayan01)%5C
**Post date:** [November 2, 2023, 4:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fshockingly-incorrect-evaluate-function-in-huggingface-api%2F60848%2F1 "2023-11-02T16:08:02Z")

</div>

Two different accuracy, one from manual evaluation and one using huggingface’s trainer function. They are completely different. I am shocked

 ![Screen Shot 2023-11-03 at 3.05.20 AM](https://us1.discourse-cdn.com/hellohellohello/original/3X/a/1/a1a74637ab89bb42f1d1b185dd725896786cceb9.png)

---

<div class="post-metadata">

**Author:** ![muellerzr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/muellerzr/32/21583_2.png) [@muellerzr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmuellerzr)%5C
**Post date:** [November 2, 2023, 4:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fshockingly-incorrect-evaluate-function-in-huggingface-api%2F60848%2F2 "2023-11-02T16:25:08Z")

</div>

> [@Sayan01](#):
>
> am shocked

You are calling `drop_last` in your eval dataloader, which in general you should never do. Does not doing so fix this? 🙂
