# The holdout that trained the scaler

A classifier is evaluated on held-out data, but its preprocessing was fitted
on the entire dataset. Restore the boundary so the holdout cannot influence
the scaler.

## Before you begin

Use Bash and Python 3.11 or later on a disposable machine. Create a virtual
environment and install the pinned library:

```sh
LAB_VENV="$(mktemp -d)"
python3 -m venv "$LAB_VENV"
. "$LAB_VENV/bin/activate"
python -m pip install -r requirements.txt
```

The lab fits a real scikit-learn `StandardScaler` and k-nearest-neighbors
classifier on fixed synthetic data. The split is supplied by the lab; it does
not validate model quality or demonstrate a particular production failure.
No cloud, real data or serialized model is used.

```sh
./setup.sh
./lab.sh inspect
```

Compare `dataset.csv`, the scaler means and `policy.json`. Change the fitting
scope without altering the dataset, split or model code.

```sh
./verify.sh
./teardown.sh
```

Verification compares fitted statistics and predictions against a separate
train-only scikit-learn pipeline. Teardown creates or deletes no service or
cloud resources; deactivate and remove the separate virtual environment when
finished.
