liveBook · Manning

Production data

As explained in Deep Learning with R, Third Edition

Production data is data generated by the real operating environment in which a deployed machine-learning model is used.

Production data is generated by the real environment where a deployed machine-learning model operates. Training data should resemble it closely; otherwise, strong test accuracy can hide poor real-world performance. section 6.1.2

When polished images fail in practice

A dish-recognition app trained on professional food photographs achieved more than 90% test accuracy but failed on mobile photos taken in ordinary restaurants. The training images did not represent the production data. Collecting and annotating images directly from the intended environment would better match deployment conditions. section 6.1.2

Use production data throughout the model lifecycle:

  • Collect data directly from the deployment environment when possible, such as new IMDb reviews for an IMDb sentiment model or actual tweets for a tweet sentiment model. section 6.1.2
  • If direct collection is impossible, understand the differences between training and production data and actively correct them. section 6.1.2
  • After deployment, monitor new inputs, model performance, application interactions, and business outcomes; use audits or randomized A/B tests when appropriate. section 6.3.3
  • Keep collecting and annotating data, especially difficult cases, because production characteristics can change and gradually reduce model relevance. section 6.3.4
“DEWEY DEFEATS TRUMAN”: a famous example of sampling bias
sidebar figure

Sampling bias provides a visual warning about how collected data can misrepresent the cases encountered in operation. section 6.1.2

How Deep Learning with R, Third Edition covers it

How deep it goes
Explains representativeness with a failure case and extends the concept into monitoring, auditing, annotation, and drift management.
Examples
Uses dish photographs, IMDb reviews, tweets, recommender systems, fraud detection, and manual prediction audits as concrete cases.
What it assumes
Requires distinguishing training from deployment environments and recognizing that test accuracy may not predict operational performance.
What you can do after
Diagnose deployment mismatch, monitor real-world behavior, and prioritize difficult cases for future annotation and retraining.
How it connects
Connects production data to training data, sampling bias, concept drift, annotation, model monitoring, and A/B testing.

Also explained in

Compare how 2 books explain production data →

Related concepts

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