76.0k views
4 votes
What is true about training a model?

1) Use the fit() function and input both X and y data.
2) Use the fit() function and input only X data.
3) Use the predict() function and input both X and y data.
4) Use the predict() function and input only X data.

1 Answer

7 votes

Final answer:

To train a model, the fit() function requires both input data and target output.

Step-by-step explanation:

The answer to the question 'What is true about training a model?' is option 1) Use the fit() function and input both X and y data. In machine learning, to train a model, you need to provide the model with both the input data (X) and the corresponding target output (y). The fit() function is used to train the model by adjusting its internal parameters based on the input data and the target output.

User Highway Of Life
by
8.0k points

No related questions found