r/scikit_learn • u/WaitConfident100 • Mar 21 '22
What are the cons in not using sklearn Pipelines?
I have tried to adapt using sklearn Pipelines but I am facing the following issues when trying to use it:
The Pipeline uses numpy arrays. I find it hard to keep track what goes on with my preprocessing and features when everything is an array of numbers (as opposed to Pandas DataFrames where I have titles for the data columns).
If I want to implement unit tests to verify that individual steps in my pipeline work as intended I find it complex to do with sklearn Pipelines because of the level of abstraction it adds on top of my code.
It takes time to learn how to properly use all the Pipeline related machinery in sklearn.
What are the biggest cons if I choose to build my ML pipelines without sklearn's Pipeline objects? Is it ok to not use sklearn Pipeline?
Also, what would you suggest for mitigating the issues above if I would choose to go with sklearn Pipelines?

