Skip to content

Dataset

Also called: datasets, data set, data sets

Published:

What counts as a dataset?

NIST's definition is as short as it gets: a collection of data [2]. Google's machine learning glossary narrows it to a collection of raw data, commonly organised as a spreadsheet or a CSV (comma-separated values) file [1]. A hospital's yearly admissions records, a weather station's hourly readings and an archive of labelled photos are all datasets.

How is a dataset used in machine learning?

When you build a model, the dataset is usually split three ways. The training set is the subset used to train the model, the validation set performs the initial evaluation of the trained model, and the test set is held back for testing it [1]. Google's glossary adds one rule that matters: each example should belong to only one of these subsets [1].

Take a spam filter trained on 10,000 labelled emails. A common split is 8,000 for training, 1,000 for validation and 1,000 for testing. If the same email turns up in both training and test data, the model looks better than it is, because it is being graded on examples it has already seen.

Why should a dataset be documented?

Where a dataset came from, what it contains and how it was collected all shape how a model behaves. The "Datasheets for Datasets" paper by Gebru and colleagues borrows an idea from electronics, where components ship with datasheets, and proposes that every dataset come with one covering its motivation, composition, collection process and recommended uses [3]. The aim is better communication between the people who build datasets and the people who use them, along with more transparency and accountability [3].

Frequently asked questions

Is it dataset or data set?

Both spellings are in use. Google's machine learning glossary lists the term as "data set or dataset".

Sources

  1. Machine Learning Glossary — Google for Developers
  2. dataset — NIST CSRC Glossary
  3. Datasheets for Datasets — arXiv