Ben Chuanlong Du's Blog

It is never too late to learn.

fit_transform vs transform in scikit-learn

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. fit_transform is used on training data while transform is used on test data.


What and why behind fit_transform() and transform() in scikit-learn!

In [ ]: