File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -385,3 +385,23 @@ efficient to process for most operations. Extensive work would also be needed
385385to support Pandas categorical types. Restricting input to homogeneous
386386types therefore reduces maintenance cost and encourages usage of efficient
387387data structures.
388+
389+ Do you plan to implement transform for target y in a pipeline?
390+ ----------------------------------------------------------------------------
391+ Currently transform only works for features X in a pipeline.
392+ There's a long-standing discussion about
393+ not being able to transform y in a pipeline.
394+ Follow on github issue
395+ `#4143<https://github.com/scikit-learn/scikit-learn/issues/4143> `_.
396+ Meanwhile check out
397+ :class: `sklearn.compose.TransformedTargetRegressor `,
398+ `pipegraph<https://github.com/mcasl/PipeGraph> `_,
399+ `imbalanced-learn<https://github.com/scikit-learn-contrib/imbalanced-learn> `_.
400+ Note that Scikit-learn solved for the case where y
401+ has an invertible transformation applied before training
402+ and inverted after prediction. Scikit-learn intends to solve for
403+ use cases where y should be transformed at training time
404+ and not at test time, for resampling and similar uses,
405+ like at imbalanced learn.
406+ In general, these use cases can be solved
407+ with a custom meta estimator rather than a Pipeline
You can’t perform that action at this time.
0 commit comments