FA-100356 / Feature preprocessing fit scope / Open access
Min-max scaling applies fitted state incorrectly · case 01
Min-max scaling applies fitted state incorrectly.
ROOT CAUSE
The transform applies a plausible but incorrect state convention.
THE FAILURE
The transform applies a plausible but incorrect state convention.
Unsuccessful approach: The partial repair addresses the main convention but mishandles an edge case.
Case contract
Train and values are nonempty numeric lists. Fit min and max on train, map values linearly to that interval, and map all values to zero when the training range is zero. Round to six decimals.
Why this case matters
A small deterministic preprocessing contract makes the fit boundary and transform behavior directly inspectable.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(train, values):
lo=min(train); hi=max(train); return [round(x/hi,6) if hi else 0 for x in values]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
t=[N,N+4]; v=[N-2,N+2,N+6]; check('inside',solve(t,v),[-0.5,0.5,1.5])
check('eval extremes do not fit',solve([0,4],[-4,8]),[-1,2])
check('training minimum',solve([N,N+2],[N]),[0])
check('constant train',solve([N,N],[N,N+3]),[0,0])
check('singleton',solve([N],[N]),[0])
check('negative interval',solve([-4,-2],[-3]),[0.5])
check('empty transform',solve([0,1],[]),[])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| inside | [-0.2, 0.6, 1.4] | [-0.5, 0.5, 1.5] | Failed |
| eval extremes do not fit | [-1.0, 2.0] | [-1, 2] | Passed |
| training minimum | [0.333333] | [0] | Failed |
| constant train | [1.0, 4.0] | [0, 0] | Failed |
| singleton | [1.0] | [0] | Failed |
| negative interval | [1.5] | [0.5] | Failed |
| empty transform | [] | [] | Passed |
SHA-256 / 857431d64f4092d2e66d72cf2bb389a746c8e4fdfe7e832f4f27bd97c2310479
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(train, values):
lo=min(train); hi=max(train); return [round((x-lo)/(hi-lo+1),6) for x in values]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
t=[N,N+4]; v=[N-2,N+2,N+6]; check('inside',solve(t,v),[-0.5,0.5,1.5])
check('eval extremes do not fit',solve([0,4],[-4,8]),[-1,2])
check('training minimum',solve([N,N+2],[N]),[0])
check('constant train',solve([N,N],[N,N+3]),[0,0])
check('singleton',solve([N],[N]),[0])
check('negative interval',solve([-4,-2],[-3]),[0.5])
check('empty transform',solve([0,1],[]),[])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| inside | [-0.4, 0.4, 1.2] | [-0.5, 0.5, 1.5] | Failed |
| eval extremes do not fit | [-0.8, 1.6] | [-1, 2] | Failed |
| training minimum | [0.0] | [0] | Passed |
| constant train | [0.0, 3.0] | [0, 0] | Failed |
| singleton | [0.0] | [0] | Passed |
| negative interval | [0.333333] | [0.5] | Failed |
| empty transform | [] | [] | Passed |
SHA-256 / c0b738caf5659ddbdc59156cd1a5e308905dfec4b72453c9936097889ebc0698
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 7 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.
Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.
Member access is invitation-based. Sign in with your invited account to inspect the repair.
Sign in to the archive ↗Verification & scope
Toy scalar min-max transform with a zero-range convention; clipping and production estimator APIs are outside scope. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.
Observations recorded using Python 3.12.14 at 2026-09-30T16:48:34.499721+00:00.
Case digest / b06d4a853b3f12ea1ab71b3695165f0f4b3f9208a6c2fa6f89c15ab81535143f