What is the role of cross-validation?
Cross-validation is used to assess a model's performance by splitting the data into training and testing sets multiple times. It helps in estimating the model's generalization performance and detecting overfitting.