Skip to content

Commit dcff1d5

Browse files
committed
Rel 0.0.1 - Fixed k-fold CV computation
1 parent edf33ef commit dcff1d5

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

Example/compare.png

-2.4 KB
Loading

Example/demo_wells.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ for cvi in 1:10
104104
nt3 = read_samples(sm3)
105105
# Compute LOO and standard error
106106
log_likt = nt3.log_likt'
107-
kfcvs[cvitst[cvi]] = PSIS.logsumexp(log_likt) .- log(size(log_likt, 2))
107+
kfcvs[cvitst[cvi]] = PSIS.logsumexp(log_likt) .- log(size(log_likt, 1))
108108
end
109109
end
110110

0 commit comments

Comments
 (0)