Lesson 02Network Intelligence
Splitting Data Without Fooling Yourself
The easiest way to get a great result is to accidentally show the model the answer. Traffic datasets leak easily: packets from one flow, one host, or one session can appear in both training and test sets, and the model learns to recognise the flow, not the class.
- Layer
- Intelligence · evaluation you can trust
- Reference
- train / validation / test
- Steps
- 5
NETLEARN · your study buddy
Net · guide
Hi! I’m Net, your guide today. We’ll look at Splitting Data Without Fooling Yourself in the Feature Engineering & Data Leakage module.
how it works
tap Net · advance one step⟲ button · start overEnter · open the full explanation
- 01spot leaks
- 02group split
- 03time split
- 04fit once
- 05measure
One tap, one step. Net narrates that step for a moment, then waits for your next tap.
Common misunderstandings
- If your first result is near one hundred percent, look for a leak before you celebrate. Real traffic classification is rarely that clean.
Key notes
- Group leakage
- Rows from the same flow or session must not cross the split boundary.
- Preprocessing leakage
- Fit scalers and encoders on train only, then transform test with the frozen values.
- Metrics
- Accuracy alone misleads on imbalanced classes; pair it with precision and recall.
