P3-3.1 Why Source Data Should Not Be Read as a Learning Problem Right Away¶
Section ID:
P3-3.1Version:v2026.07.20
When source data first arrives, many people almost reflexively think, what can we predict with this? first. Because there is a table, many values, and records measured over time, it feels as if the data could be turned immediately into some learning problem. But that reaction is usually too fast. The table in front of us is more likely not yet a training dataset, but merely recorded source data, or at best a dataset candidate.
Here the first point to fix is that problem structure comes before the learning-problem frame. We have to make clear the warning that this is not yet the stage for choosing a learning-problem frame such as a prediction problem, a classification problem, or an anomaly-detection problem.
At the entry to this Chapter, the dataset candidate viewpoint built in Chapter 2 is narrowed one step further.
| What the previous Chapter left behind | What this Chapter adds | The structure passed to the next Chapter |
|---|---|---|
| the difference between storage structure and a dataset candidate, and the first checks for a new table | the reason source data should not yet be promoted into a learning problem | the judgment that actually fixes the sample unit and table structure |
Consider a situation where, for each automatically executed action, a control-parameter time series and a sensor time series are recorded. When seeing such a table, thoughts like the following arise first.
- Since there are sensor values, this could be turned into an anomaly-detection problem.
- Since action results differ slightly, it could be turned into a classification problem.
- If the time series is long, maybe it can be sent directly into a time-series prediction problem.
These thoughts are not themselves wrong. The problem is that the learning-problem frame appears first while what counts as one case, what we are trying to predict, and whether a label actually exists have not yet been fixed. In that state, the data problem has not been defined yet. The learning-problem frame has merely been imagined before the data itself.
The reason this happens so often is clear. First, when a table is visible, people often accept it immediately as already organized data. Second, if prior AI-learning experience has been remembered mostly through learning-problem types, prediction style appears before problem representation. Third, the longer and more complex the raw time series is, the more likely the expectation comes first that maybe this can be passed directly into a learning problem as it is.
But if source data is read immediately as if it were already a dataset, important questions are skipped.
| The question that easily comes to mind first | The question that is actually needed first |
|---|---|
| Into what learning problem should this be read? | What should count as one sample? |
| What should the label be? | Does a stable label truly exist right now? |
| How should accuracy be improved? | Into what table must this be regrouped so comparison becomes possible? |
This difference is not merely about order. What is needed when source data is first seen is not choosing a learning problem, but asking again what kind of table this really is. Depending on whether what we are looking at is time-point measurement records, a summary of one action, or an aggregate of a recent segment, every later explanation of feature, baseline, and target changes.
For example, even after seeing only part of the source data below, the learning-problem frame may jump out too early.
| event_id | second | pressure | flow |
|---|---|---|---|
| A | 0 | 1.0 | 0.0 |
| A | 1 | 2.0 | 1.4 |
| A | 2 | 2.4 | 1.6 |
Looking only at this table, it is easy to think of words such as classification problem, prediction problem, or time-series learning problem. But we still have not decided whether this table is a time-point record or a one-action table. So if we choose a learning-problem frame here right away, the format of the problem gets ahead of the problem itself.
A Small Diagram¶
It becomes clearer which questions stay empty when source data is escalated too early into a learning problem if the flow is reread as source records -> empty questions -> sample/label candidate cleanup.
flowchart TD
A[See raw time-point records] --> B[Imagine a learning-problem frame too early]
B --> C[Notice that sample unit is still unfixed]
C --> D[Notice that label candidate is still unfixed]
D --> E[First reorganize the table as a dataset candidate]
E --> F[Only then decide whether to escalate into a learning problem]
Problem situation: when a time-point log table arrives, check which core questions remain empty if we read it immediately as a learning problem.
Input: the raw log table p3_3_1_source_operation_log.csv, where multiple time-point measurements are mixed under each event_id, and label_column_to_try, the column name to inspect as a label candidate
One row in the input file is a sensor record measured at a specific second (second) inside one action (event_id). The table also contains batch_id, recipe, pressure, flow, vibration, and temperature, but at this point we have not yet decided which column is the sample identifier and which column is the label.
Expected output: it becomes visible that read it as a classification problem right now and fill in the missing questions first produce different results. Changing label_column_to_try also shows that column existence and label-candidate usability are not the same thing.
Concept to check: before source data is read as a learning problem, we first have to decide what one sample, a label candidate, and a comparison table are. Learning-problem judgment is not a fixed sentence; it has to be checked against the current table's columns and grouping criteria.
Expected output:
The core of this example is the difference between steps 2 and 3. In step 2, only the sentence maybe this is a classification problem appears first, but in reality the review_label column specified by label_column_to_try does not exist, and even one sample has not yet been decided. The value to manipulate here is label_column_to_try. If it is changed to "flow", column exists becomes True, but candidate unit is time_point_sensor_value and usable label candidate remains False. That is because flow is not a stable label attached to one action; it is a time-point sensor value. By contrast, step 4 first fixes the structure one sample is one action and the comparison table is one row per action. Only after that does an event-level comparison table with row_count, duration_seconds, max_pressure, mean_flow, max_vibration, and end_temperature appear, as in step 5. In other words, if source data is read too quickly as a learning problem, the problem format is fixed first while the still-empty questions remain covered over.
If we place side by side the empty questions left behind when the learning-problem frame jumps out first, the issue becomes clearer.
| The phrase that jumps out first | The question that is still empty |
|---|---|
anomaly-detection problem | What exactly will count as an anomaly? |
classification problem | Does a stable label truly exist? |
time-series learning problem | Is one sample one time-point bundle, or one full action? |
The core of this table is not that the name of the learning problem is wrong. The problem is that the questions that have to be answered before that frame are still empty. Data modeling is the front-end design that fills those blanks.
So the most common mistake when source data first arrives is to mistake record structure for learning structure. The mere existence of time-point logs does not mean a prediction problem has already been defined. Only after we decide how to group those logs, what to keep, and what to compare them against can we accurately use the word dataset. Once the learning-problem frame appears first, that front-end design is easily skipped, and later the sample unit and table structure have to be taken apart and rebuilt. If this section is reread as a problem of managing the moment of problem escalation, it becomes even clearer that the key is not let model names come to mind later, but the judgment not to escalate prematurely into a learning problem before the sample unit and label candidate are organized.
Sources and Further Reading¶
- Google for Developers,
Machine Learning Glossary:labeled example. Because it explains that a labeled example consists of features and a label, it supports the claim that source data where neither one sample nor a label has yet been fixed should not be read immediately as a learning problem. https://developers.google.com/machine-learning/glossary / Accessed: 2026-07-20 - Google for Developers,
Machine Learning Glossary:label leakage. Because it explains a design flaw where a feature becomes a proxy for the label, it strengthens the warning that choosing the problem frame first risks reading not-yet-organized source columns into a bad learning structure. https://developers.google.com/machine-learning/glossary / Accessed: 2026-07-20 - W3C,
PROV-Overview. Because the provenance framework explains that it should support identifying an object and representing derivation, it strengthens the higher-level frame that we must first decide what counts as one object and through what transformation a dataset candidate was made. https://www.w3.org/TR/prov-overview/ / Accessed: 2026-07-20