pqc.detect.feature_structure

Detect feature-domain structure and provide simple detrending utilities.

This module provides lightweight, binned diagnostics for feature-dependent structure in residuals, as well as a simple binned-mean detrending helper.

See also

pqc.features.feature_extraction: Feature extraction helpers. pqc.detect.bad_measurements.detect_bad: Downstream outlier detector.

Functions

detect_binned_structure(df, feature_col, *)

Test for coherent feature dependence using binned weighted means.

detrend_residuals_binned(df, feature_col, *)

Subtract a binned weighted-mean trend from residuals.