A regression target was log-transformed before training to stabilize variance. The team wants the training object itself to handle inverse transformation of predictions automatically during inference. Which tool is the best fit?
Answer & explanation
Correct answer: D
WHY D: TransformedTargetRegressor is designed to transform the target during fitting and apply the inverse transform to predictions automatically.
WHY NOT A: StandardScaler alone does not wrap prediction logic for the target.
WHY NOT B: Feature hashing is unrelated to target inversion.
WHY NOT C: GridSearchCV does not perform inverse target transforms by itself.
WHY NOT E: KFold only defines splits.