Download the code at: https://github.com/mariocastro73/ML2020-2021/blob/master/scripts/crossvalidation.R