﻿# KDD Cup 1999: connection records, loader subsets and unseen attacks

Preserve KDD Cup 1999 connection-level observations, symbolic features, explicit loader sampling, and the distinction between original test attacks and a random row holdout.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-kddcup99-connection-unit-loader-subset-test-labels/
Language: en

## A released row summarizes a connection

A team may treat KDD Cup records as packet sequences and build a recurrent model across arbitrary adjacent rows. The [original task description](https://kdd.ics.uci.edu/databases/kddcup99/task.html) defines labeled connection records derived from a simulated network environment. Each row already contains measurements and derived traffic features.

This unit differs from an individual packet or a universally continuous sensor tick. Any sequence construction needs a justified identity and ordering rule, not merely the order in which a downloaded table happens to iterate.

## Symbolic fields need a typed representation

The [original attribute file](https://kdd.ics.uci.edu/databases/kddcup99/kddcup.names) identifies `protocol_type`, `service`, and `flag` as symbolic. Converting these into arbitrary integers does not make their distances meaningful. Preserve category inventories and the handling of previously unseen values.

Keep class labels separate from predictor columns and retain the map from original attack names to any broader groups used in evaluation. A binary normal-versus-attack task and attack-family classification are related but different experimental targets.

## A convenient loader can return a reduced collection

The [scikit-learn loader](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.fetch_kddcup99.html) exposes subset and shuffle controls and enables `percent10` by default. Specify the chosen settings in an experiment record instead of assuming the returned array is the complete competition dataset.

If filtering or duplicate handling is added, document the resulting observation population. The [data identity guide](/journal/data-guide-coco-instance-caption-identities/) explains why transformed records should preserve recoverable source membership rather than losing it during concatenation or sampling.

## Original testing changes the attack distribution

The original task states that testing includes attack types absent from training and comes from a different distribution. A random split of one training table answers another question because it does not deliberately reproduce that challenge.

Plan label handling accordingly. Do not silently remove evaluation records whose attack names were absent when fitting an encoder. If the experiment merges attacks into a common positive class, state that rule before scoring rather than changing the target after inspecting errors.

## Limit conclusions to the implemented historical protocol

Validate the observation unit, symbolic fields, subset settings, class map, and holdout construction before comparing detectors. Keep score exports attached to connection records so errors can be inspected by category and source partition.

The [benchmark methodology guide](/journal/inference-benchmark-method/) helps distinguish reproducible execution from broader deployment claims. Success under this historical simulated benchmark does not establish modern operational intrusion coverage. It provides evidence for a particular representation and evaluation protocol, whose assumptions should remain visible beside any accuracy or throughput measurement.
