How to reduce Overfitting and Underfitting in ML Model

Cross-validation is a powerful preventative measure against overfitting Pruning is a also powerful technique in machine learning and search algorithms that reduces the size of decision trees by removing sections of the tree that provide little power to classify instances.