In scikit-learn, the fit() method of an estimator:
-
A
generates predictions on new data points
-
B
evaluates the model on the test data
-
C
splits the data into training and test sets
-
D
learns the model parameters from the training data
Correct answer
Correct answer
D. learns the model parameters from the training data
11 views
Explanation
fit() trains the estimator; predict() then produces outputs for new observations.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ