Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 5a2a94e

Browse files
authored
Merge pull request #8 from bnicenboim/patch-2
same as #7 adding round
2 parents 9cf87dc + e7f01ec commit 5a2a94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2017/Contributed-Talks/07_nicenboim/kfold.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ <h1><span class="header-section-number">1</span> Appendix: K-fold cross validati
280280
# First parallelize all chains:
281281
sflist &lt;- pbmclapply(1:(K * chains), mc.cores = cores, function(i) {
282282
# Fold number:
283-
k &lt;- ((i + 1)/chains)
283+
k &lt;- round((i + 1)/chains)
284284
s &lt;- sampling(model, data = list_of_datas[[k]], chains = 1, chain_id = i,
285285
...)
286286
return(s)

0 commit comments

Comments
 (0)