---
title: Add validation and test datasets
description: >-
  - Basic — Add a validation and test loop to avoid overfitting. - Intermediate
  — Learn about more complex validation and test workflows
canonical: 'https://lightning.ai/docs/pytorch/stable/reference/common/evaluation'
---
# Add validation and test datasets {#add-validation-and-test-datasets}

- [Basic](/docs/pytorch/2.6.6/reference/common/evaluation_basic.md) — Add a validation and test loop to avoid overfitting.

- [Intermediate](/docs/pytorch/2.6.6/reference/common/evaluation_intermediate.md) — Learn about more complex validation and test workflows

---

**Navigation**

- Parent: [Common](/docs/pytorch/2.6.6/reference/common.md)
