harbor run -t openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-3530harbor download openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-3530Title: Implement a fully functional BoxCoxTransformer with per-variable lambda estimation and automatic feature selection
Body: I’m building a BoxCoxTransformer for feature_engine/transformation.py and need a complete, self-contained implementation that passes a suite of tests. The requirements are quite specific, and I want to ensure the implementation adheres to all of them (including input validation, per-variable lambda learning, and transformation behavior). Below is the full spec that the transformer must satisfy.
Requirements
Class and API
Variable selection
Input validation and error handling
Box-Cox transformation and parameter learning
Transformation behavior
Behavior alignment with tests
Notes and implementation tips
Deliverable A complete BoxCoxTransformer implementation that satisfies the described behavior and aligns with the provided pytest tests.
Code context (starter skeleton) If helpful, here is a minimal starting point you can extend (do not rely on external dependencies beyond pandas, numpy, and sklearn.exceptions for NotFittedError):
If you’ve already implemented something like this or have a robust, test-passing version, I’d appreciate seeing the approach and any gotchas I should watch for.