From 19cbfd14c23f3cabcb85bac4b2ebdc82f18e4ec3 Mon Sep 17 00:00:00 2001 From: Philip Mostert Date: Wed, 31 Jul 2024 16:51:33 +0200 Subject: [PATCH] Fixed issue with replicating training data --- R/blockedCV.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/blockedCV.R b/R/blockedCV.R index 5ef58e0..c4e6297 100644 --- a/R/blockedCV.R +++ b/R/blockedCV.R @@ -100,7 +100,7 @@ blockedCV <- function(data, options = list(), for (dataSub in 1:length(datasetCombs)) { - dataToUse <- datasetCombs[[dataSub]] + dataToUse <- unique(datasetCombs[[dataSub]]) for (fold in unique(unlist(block_index))) {