liveBook · Manning

Data source

As explained in Machine Learning System Design

Data origin is the source, generating process, or provenance from which data is obtained.

A data source is the origin or generating process from which data is obtained. For an ML system, the choice of sources shapes what can go into the dataset and depends on the system’s goals, the work environment, and the quality and availability of data. section 6.1 section 6.0

Start with the business problem rather than assuming one source will be enough. Internal business data may be useful, but external or synthetic sources can expand what is available. Unique data can offer a competitive advantage; easier-to-acquire data can also be valuable when prepared well. section 6.1 section 6.8

Common sources include:

  • Global activities, such as recorded stock trades and prices, and physical processes, such as environmental changes observed by satellites or farm sensors. section 6.1
  • External databases collected by third parties and local business processes, such as eCommerce purchase histories. section 6.1
  • Labels supplied by dedicated teams or end users, and synthetic data produced by simulators, rendered environments, or generative AI. section 6.1

Sources in a promotion system

A system personalizing offers might combine an internal customer database, clickstream logs, and call center logs in a data warehouse. Trouble in any upstream source can affect the whole system. A processing job can even report success after handling zero rows, leaving a source problem unnoticed. section 14.3.1

Source selection is not a one-time decision. Keep data origin, preprocessing, and filtering consistent, and document definitions the team might interpret differently. Differences between data gathered during development and inputs received in use can create a distribution mismatch; a model’s feedback loop can also change the data’s origin. section 6.6

In the design document, identify the data and label sources, how data will be represented and stored, and how samples will be filtered. Plan for source, access, extraction, and format problems: their effects can be especially severe when a streaming system makes real-time decisions at high volume. section 6.7 section 14.3.1

How Machine Learning System Design covers it

How deep it goes
Describes source categories and practical selection, consistency, and reliability concerns without detailing source-specific acquisition procedures.
Examples
Uses stock trades, environmental sensors, purchase histories, user labels, synthetic data, and a promotion system combining customer and activity logs.
What you can do after
Evaluate and understand potential sources and their consistency and reliability risks when designing an ML system.
How it connects
Connects data sources to data pipelines, labeling, distribution mismatch, feedback loops, and monitoring.

Also explained in

Compare how 13 books explain data source →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.