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

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?

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

Given that merge sort splits the array into 2, performs a recursive call on each of the 2 arrays, and repeats until the base case of 1 or less items in an array is reached, how many levels of recursion are there and why?