Using a transformer (estimator) to transform the target labels in sklearn.pipeline

前端 未结 3 680
天涯浪人
天涯浪人 2020-12-10 14:38

I understand that one can chain several estimators that implement the transform method to transform X (the feature set) in sklearn.pipeline. However I have a use case where

3条回答
  •  悲&欢浪女
    2020-12-10 15:42

    You could add the label column to the end of the training data, then you apply your transformation and you delete that column before training your model. That's not very pro but enough.

提交回复
热议问题