Building your own sklearn transformer is easy and very useful

1 · Louis Cialdella · Jan. 2, 2024, midnight
Scikit-learn pipelines let you snap together transformations like Legos to make a Machine Learning model. The transformers included in the box with Sklearn are handy for anyone doing ML in Python, and practicing data scientists use them all the time. Even better, it’s very easy to build your own transformer, and doing so unlocks a zillion opportunities to shape your data. Pipelines make model specification easy Most of the time, ML models can’t just suck in data from the world and spit predictio...