alegonz / baikal

A graph-based functional API for building complex scikit-learn pipelines.
https://baikal.readthedocs.io
BSD 3-Clause "New" or "Revised" License
592 stars 30 forks source link

how to access one of the parent object #59

Closed rja172 closed 1 year ago

rja172 commented 2 years ago

Any suggestion on how to setup this kind of workflow

  1. Fit_transform an Ordinal Encoder to transform Y
  2. Train Model (X and Transformed Y)
  3. Inverse Transfrom Predicted (Transformed) Y to original Y

Challenge: Step 3 requires access to OrdinalEncoder trained at step 1

alegonz commented 1 year ago

Please take a look at the transformed target example in the documentation. That should be similar to the case you outlined. Feel free to reopen if that didn't help.