Time to learn about best practices of evaluating and hyperparameter tuning for ML models
We have an outer k-fold cross-validation loop to split the data into training and testing folds, and inner loop is used to select model using k-fold cross-validation on training fold
After model selection, test fold is used to evaluate model performance
Example of 5x2 cross validation, where 5 outer and 2 inner folds are used:
Code implemenation in code