vc_005 · Degenerate label

Status: ✓ Passing · Last run: 2026-06-04T23:39:20 · Pipeline: v2 · History: 6/7 runs passed (86%)

What was tested

Target column is constant (all zeros). The pipeline must halt at label verification with a 'single-class' diagnostic rather than silently producing a meaningless model. This is the safety-floor case — the product's "no silently broken outputs" guarantee depends on this halt firing.

What we planted in the data

What the system did

What we checked — all assertions passed

Status Assertion Detail
pipeline_halted_with halted with text containing 'single-class': "RuntimeError: label verification failed: single-class label (pos=0, neg=1000) — labeling is …
no_model_produced no model produced — pipeline correctly refused to train

How this could have gone wrong

Why this case matters

Tests the safety floor. When data has a degenerate target, the system must surface the diagnostic loudly rather than producing a model the customer would mistake for a real prediction. Part of the broader "fail loud, never silently wrong" property the validation report publishes.

Reproducing

# from auto_insight_api/
python -m validation.v2 run vc_005 --pipeline v2 -v

← back to validation report