# How to split a dataset into train, test, and validation?

**URL:** <https://discuss.huggingface.co/t/how-to-split-a-dataset-into-train-test-and-validation/1238>\
**Category:** Beginners\
**Created:** [September 23, 2020, 9:23pm UTC](https://discuss.huggingface.co/t/how-to-split-a-dataset-into-train-test-and-validation/1238 "2020-09-23T21:23:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![valhalla](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/valhalla/32/4179_2.png) [@valhalla](https://discuss.huggingface.co/u/valhalla)\
**Post date:** [September 24, 2020, 4:22pm UTC](https://discuss.huggingface.co/t/how-to-split-a-dataset-into-train-test-and-validation/1238/2 "2020-09-24T16:22:07Z")

</div>

I think it’s answered here  
[How to split main dataset into train, dev, test as DatasetDict](https://discuss.huggingface.co/t/how-to-split-main-dataset-into-train-dev-test-as-datasetdict/1090)

---

_[View the full topic](https://discuss.huggingface.co/t/how-to-split-a-dataset-into-train-test-and-validation/1238)._
