Skip to content

v1.21.2

Latest

Choose a tag to compare

@CountZero-Error CountZero-Error released this 26 Oct 08:49

Fixes from an independent review of 1.21.1. Normal rankings are unchanged; the fixes close silent-failure paths.

pip install -U featranker

Fixes

  • Models can no longer corrupt each other. Every model fits and scores on read-only views of the shared arrays (array and model_input="dataframe", SHAP evidence included). A model that writes to its input now fails alone instead of silently changing later models' scores. Some scikit-learn linear models (Ridge; LinearRegression on 1.9) copy the read-only input once while fitting: about +17% peak memory on 1e5 × 200, no runtime change.
  • Opaque transformers are unverified for shadows. A FunctionTransformer with a function, or a transformer scikit-learn does not define, anywhere in a model (later pipeline steps, GridSearchCV, BaggingRegressor, TransformedTargetRegressor's regressor) leaves that model out of the shadow evidence with a shadows failure. Target transformers are not affected. Rankings are unchanged.
  • Shadow rules without shadow evidence (min_shadow_share, max_shadow_q, min_shadow_families) raise a clear ValueError instead of KeyError.
  • Repeated cv splits raise ValueError. A repeated split added no data but shrank shadow q-values.
  • max_shadow_q is experimental. Using it warns that shadow q-values are uncalibrated; shadow_test records "experimental": true.
  • ablate() checks model parameters against the report (raises on a mismatch; warns when the report came from another scikit-learn version).
  • Strict JSON with NumPy integers: random_state, shadow_seed, n_repeats, top_k and similar arguments are recorded as plain ints.
  • CLI checks the output path before ranking and reports write errors without a traceback.
  • The calibration harness test is repaired and benchmarks/ tests run in CI.

Behaviour changes

  • cv with identical splits now raises.
  • Pipelines with custom transformers no longer count toward shadow rules; with only such models, shadow rules raise.
  • shadow_seed, n_repeats and top_k accept NumPy integers.

Docs: Usage · Report

PyPI: https://pypi.org/project/featranker/1.21.2/