executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
preprocessingUse Fairlearn preprocessing mitigation with CorrelationRemover and PrototypeRepresentationLearner before training downstream estimators.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task asks to transform features before training a model: CorrelationRemover, PrototypeRepresentationLearner, sensitive columns inside X, fair representation learning, or a sklearn pipeline that applies unfairness mitigation before an estimator.
X (CorrelationRemover) or supplied separately to a representation learner (PrototypeRepresentationLearner).../assessment/ to compare utility and disparity before and after preprocessing.references/workflows.md for API usage, sklearn pipeline patterns, parameter choices, and validation steps.references/troubleshooting.md for missing sensitive columns, feature-count mismatches, optimizer convergence, and representation learner edge cases.scripts/smoke_preprocessing.py for a tiny synthetic check covering both preprocessing APIs.CorrelationRemover(*, sensitive_feature_ids=(), alpha=1): removes linear correlations between non-sensitive columns and the sensitive columns identified in X; output contains transformed non-sensitive features.PrototypeRepresentationLearner(n_prototypes=2, reconstruct_weight=1.0, target_weight=1.0, fairness_weight=1.0, random_state=None, tol=1e-06, max_iter=1000): learns prototype-based representations with reconstruction, target, and fairness terms.../reductions/ if the user wants fairness-constrained training rather than feature transformation.../adversarial/; PrototypeRepresentationLearner here is not the adversarial neural estimator.CorrelationRemover, pass column names when using pandas DataFrames; pass integer column indices for numpy arrays.PrototypeRepresentationLearner, pass sensitive_features to fit/fit_transform when fairness weighting should use those groups.Run:
python sub-skills/preprocessing/scripts/smoke_preprocessing.py
The smoke uses synthetic data only and does not download datasets.