liveBook · Manning

Data collection

As explained in Deep Learning with Python, Third Edition

The process of gathering data examples for a machine learning project before model development.

Data collection gathers the examples needed after defining a machine-learning task, its inputs, and its targets. It is often the most arduous, costly, and time-consuming project stage. section 6.1.2

Different projects, different data strategies

A photo search engine may require hundreds of thousands of manually labeled images. Encrypted chats may require a separate social-media dataset, while recommendation and click-through systems can reuse existing likes and advertising records. A cookie model may need cameras and factory workers to label images; satellite analysis may need archaeologists to assemble sites and images across weather conditions. section 6.1.2

Use these practical rules when allocating effort:

  • Treat dataset size, label reliability, and feature quality as core assets because they largely determine generalization. section 6.1.2
  • When extra project time is available, collecting more data may outperform searching for incremental modeling improvements. section 6.1.2
“DEWEY DEFEATS TRUMAN”: a famous example of sampling bias
dewey truman

Use the historical headline to inspect how sampling bias can distort a dataset. section 6.1.2

How Deep Learning with Python, Third Edition covers it

How deep it goes
Explains collection choices and dataset quality factors through project examples, without detailing operational labeling protocols.
Examples
Uses image search, spam detection, recommendations, advertising, cookie inspection, and satellite imagery projects.
What it assumes
Assumes a defined task with identified inputs and targets, then emphasizes dataset properties as foundations for generalization.
What you can do after
Apply it by choosing between reusing records, acquiring separate data, collecting new examples, and investing in labeling.
How it connects
Connects data collection with machine learning, labels, features, generalization, sampling bias, and model development.

Also explained in

Compare how 10 books explain data collection →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with Python, Third Edition. The section links point to the parts of the book it draws on.