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.

References

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

https://towardsdatascience.com/what-and-why-behind-fit-transform-vs-transform-in-scikit-learn-78f915cf96fe

In [ ]:
 

Comments