Dataset

A dataset is a collection of data gathered and organised for a purpose, such as a table of records or a set of labelled images or texts used to train, test or evaluate an AI model.

Google's machine learning glossary defines a dataset simply as a collection of raw data, commonly organised as a spreadsheet or a file of comma-separated values. In machine learning a dataset is made up of examples. Each example has features, the inputs, and in supervised learning a label, the answer the model should learn to predict. A house price dataset, for instance, might list the number of bedrooms, the number of bathrooms and the age of each house, with the sale price as the label.

A dataset is normally split before a model is trained. The training set is what the model learns from. A validation set is used to tune choices during development. A test set is held back until the end to estimate how the model will do on data it has never seen. If the test set leaks into training, or is copied into later training data, scores stop meaning much.

Some datasets have shaped the history of AI. ImageNet, which Fei-Fei Li began working on in 2006 and which was first presented in 2009, contains more than 14 million hand-annotated images in more than 20,000 categories. Its labels were produced through Amazon Mechanical Turk between July 2008 and April 2010 by about 49,000 workers in 167 countries. Its history also shows the risks: when its creators reviewed the categories describing people, they judged 1,593 of 2,832 to be potentially offensive.

Datasets are not neutral. Choices about what to collect, whom to include, how to label it and under what licence all shape the models trained on it. In 2018 Timnit Gebru and colleagues proposed Datasheets for Datasets: standard documentation of each dataset's motivation, composition, collection process and recommended uses, modelled on the datasheets that come with electronic components.

When a news story says a model was trained or tested on a particular dataset, the useful questions are where the data came from, how large and how recent it is, how it was labelled, what licence it carries and whether the test material could have appeared in the training data.

Common questions

What is a dataset in machine learning?

It is the collection of examples used to train, tune or test a model. Each example contains features, the inputs, and often a label, the correct answer. Datasets range from small spreadsheets to collections of billions of web pages or images.

What is the difference between training, validation and test sets?

They are separate portions of a dataset. The model learns from the training set, developers use the validation set to tune settings and compare versions, and the test set is kept aside to estimate performance on unseen data at the end.

Is it dataset or data set?

Both spellings are used and mean the same thing. Google's machine learning glossary lists the term as data set or dataset.

What makes a good dataset?

It should be relevant to the task, large enough, representative of the situations the model will meet, accurately labelled and legally usable. It should also be documented, so others can see how it was collected and what it should and should not be used for.

Finding more

Search for a dataset's name together with "datasheet", "dataset card" or "paper" to find its documentation. The original paper describing a dataset, its official project page and independent audits are the most reliable sources. Be cautious when a dataset's size or contents are described only in marketing material.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.