koaning / scikit-lego

Extra blocks for scikit-learn pipelines.
https://koaning.github.io/scikit-lego/
MIT License
1.28k stars 118 forks source link

Introducing `FormulaicTransformer` and deprecating `PatsyTransformer` #593

Closed FBruzzesi closed 1 year ago

FBruzzesi commented 1 year ago

Description

Addresses #559 by deprecating PatsyTransformer and introducing a FormulaicTransformer.

In writing of FormulaicTranformer I followed what is described in the formulaic documentation for integrating with sklearn. The main (tiny) differences with such implementation can be summarized as:

Additionally the PR makes both dependencies optional.

Type of change

Checklist: