added support for output predictions in k-fold cross validation