NETLEARN
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
  1. 01spot leaks
  2. 02group split
  3. 03time split
  4. 04fit once
  5. 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.