# Why eval\_dataset is set with test dataset in training\_args

**URL:** <https://discuss.huggingface.co/t/why-eval-dataset-is-set-with-test-dataset-in-training-args/79590>\
**Category:** Beginners\
**Created:** [April 1, 2024, 5:14am UTC](https://discuss.huggingface.co/t/why-eval-dataset-is-set-with-test-dataset-in-training-args/79590 "2024-04-01T05:14:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crnabay](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@crnabay](https://discuss.huggingface.co/u/crnabay)\
**Post date:** [April 1, 2024, 5:14am UTC](https://discuss.huggingface.co/t/why-eval-dataset-is-set-with-test-dataset-in-training-args/79590/1 "2024-04-01T05:14:48Z")

</div>

Hello,  
I am seeing some Github repositories that set eval\_dataset with test\_dataset. I was thinking that it might cause overfitting. Can you please tell me if there is a specific reason, or it is just a bug?

```auto
trainer = Trainer(
    model,
    args,
    train_dataset=tokenized_datasets_train,
    eval_dataset=tokenized_datasets_test,
    tokenizer=tokenizer,
    compute_metrics=compute_metrics,
    data_collator = data_collator_
)

```
