fit() vs transform() vs fit_transform() in Python scikit-learn

What’s the difference between fit, transform and fit_transform methods in sklearn

Giorgos Myrianthous
Geek Culture
Published in
4 min readMar 14, 2021

--

Photo by Kelly Sikkema on Unsplash

scikit-learn (or commonly referred to as sklearn) is probably one of the most powerful and widely used Machine Learning libraries in Python. It comes with a comprehensive set of tools and ready-to-train models — from…

--

--

Giorgos Myrianthous
Geek Culture

I strive to build data-intensive systems that are not only functional, but also scalable, cost effective and maintainable over the long term.