]> Piment Noir Git Repositories - freqai-strategies.git/commit
fix(quickadapter): recheck weight support after feature pipeline (#150)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 28 Jul 2026 23:57:36 +0000 (01:57 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2026 23:57:36 +0000 (01:57 +0200)
commita175c4969f84355bec7942230c6eb91ba15e90af
treeed16bff8efa4b3063424b9602df3d9fbbee63655
parentd4d6051839e74b6a40f191ec0d7b387bd45f13f6
fix(quickadapter): recheck weight support after feature pipeline (#150)

Label-weight support checks (min_pivot_equivalent_count,
min_positive_label_weight_fraction, min_effective_sample_size Kish ESS)
previously ran only before feature_pipeline.fit_transform, which can remove
training rows and renormalize the surviving weights below those thresholds
without re-invoking support_policy.

Recheck support post-pipeline on the surviving rows: carry the raw base and
label weight components through fit_transform as temporary object-keyed label
columns (row-filtered in lockstep with X/y/sample_weight, since DataSieve
resets indexes), pop them, restore the label schema, and re-gate via
support_policy. _sanitize_pipeline_weights fails closed on any malformed
post-pipeline weight shape (None/scalar/2-D/wrong-length). Base-only weights
carry no label support and skip the re-gate. Selection training and final
refit share the path; eval (val/test) weights still bypass support_policy but
now fail closed on shape.

No tunable, canonical default, or public API change.

Fixes #93
README.md
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py