Explain cross-validation, both the process and why you do it.

Explain cross-validation, both the process and why you do it.



Answer: Cross-validation is an effective tool to measure the accuracy of your model and check to see if it is underfitting or overfitting. In addition, it is useful to determine the hyperparameters of the model. You will use cross validation to determine which parameters will result in lowest test error. It does this by splitting your data into multiple groups, then training your model some of the groups and validating it on another group.


Popular posts from this blog

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

What does Latency mean?