[scikit-learn] Fit and predict method

Venkataraman B venkataraman.bal at gmail.com
Sun Feb 24 00:31:51 EST 2019


Hi, I had a question on the predict and fit methods

The fit method is used to build the model ie classifier.fit(X,y). But when
the predict method is called the model that is built is never passed.  You
only pass the test set. So what model does the predict function use to
predict the output

I am picking python after working on R and the predict function in R made
more sense because the model that was built is passed along with the test
set that has to be predicted

Any response would be greatly appreciated
-- 
Regards, Venkataraman B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20190224/801b98a1/attachment.html>


More information about the scikit-learn mailing list