diff --git a/comik_wrapper.m b/comik_wrapper.m index ee58089..ba8615a 100644 --- a/comik_wrapper.m +++ b/comik_wrapper.m @@ -108,7 +108,7 @@ negTestIndices = setdiff(configParams.testIndices, posIndices) - configParams.nPosSequences; thisTestIndices{1} = configParams.testIndices; -for i=2:nOuterFolds +for i=2:configParams.nOuterFolds thisPosTestIndices = circshift(posIndices, [0, (i-1)*length(posTestIndices)]); thisNegTestIndices = circshift(negIndices, [0, (i-1)*length(negTestIndices)]) + length(posIndices); thisTestIndices{i} = [thisPosTestIndices(end-(length(posTestIndices))+1:end) thisNegTestIndices(end-(length(negTestIndices))+1:end)];