Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Machine Learning by (19k points)

Could you please explain what the "fit" method in scikit-learn does? Why is it useful?

I am new in Machine Learning and scikit-learn.

1 Answer

0 votes
by (33.1k points)

In contrast to machine learning, fitting means training. There is a fit function in ML, that is used for training of model using data examples. Fit function adjusts weights according to data values so that better accuracy can be achieved. After training, the model can be used for predictions, using .predict() method call. 

Hope this answer helps.

Browse Categories

...