﻿# Adult: missing markers and final weights require separate decisions

Build an explicit Adult dataset adapter for question-mark missing values, mixed feature types, original file splits, and the distinct statistical role of fnlwgt.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-adult-missing-marker-final-weight-preprocessing/
Language: en

## A numeric column does not explain its statistical role

An engineer importing Adult into a tabular neural network may scale every numeric column identically and later also use `fnlwgt` to weight training examples. That double decision needs an explicit rationale. The [UCI collection](https://archive.ics.uci.edu/dataset/2/adult) describes an income classification dataset with mixed feature types; the schema alone does not settle the intended estimand.

Decide whether the experiment predicts benchmark row labels or estimates a population-weighted quantity. Those objectives need not produce interchangeable metrics.

## Preserve the question-mark missing-value convention

The [original Adult documentation](https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.names) explains that unknown values were converted to `?`. Reading this token as an ordinary occupation or work category creates a different representation from treating it as missing.

Normalize surrounding whitespace deliberately, recognize the missing token, and specify imputation or missing-category treatment. Dropping affected rows also changes the evaluated population and partition sizes; it should not be hidden behind a generic cleaning step.

## Final weight is not automatically a training instruction

The source describes `fnlwgt` as a final survey weight connected with population estimation. That meaning differs from an automatically supplied instruction to multiply every supervised loss by that value.

Document separately whether the column is retained as a predictor, excluded, used for weighted estimation, or used for weighted evaluation. Keep raw values available for audit. A weighted score and an unweighted score answer different questions even when their predictions are identical.

## Mixed preprocessing needs named feature groups

The [ColumnTransformer documentation](https://scikit-learn.org/stable/modules/generated/sklearn.compose.ColumnTransformer.html) supports separate transformations for selected columns. Use an explicit numeric and categorical schema rather than inferring meaning solely from a parser's dtype. Check what happens to unselected columns so that an important field is not silently dropped.

Fit imputation, category vocabularies, and scaling on the permitted training partition. The [data identity guide](/journal/data-guide-coco-instance-caption-identities/) helps preserve the correspondence between original rows and transformed records after filtering.

## Publish the evaluated population with the result

Retain the original file membership, missing-value rule, target mapping, feature list, and weight policy with each run. Inspect predictions for rows with and without unknown fields rather than reporting only an undifferentiated aggregate.

The [benchmark methodology guide](/journal/inference-benchmark-method/) explains why changed preparation limits comparisons. A successful Adult experiment establishes performance under that historical dataset protocol; it does not establish suitability for contemporary employment decisions or make its recorded categories universal demographic definitions.
