Minimal reproducible example:
paste("loo version:", packageVersion("loo"), "\n") |> cat()
N = 1000000
cat("crps.numeric:\n")
system.time(
loo:::crps.numeric(1:3, 4:6, 5, permutations=N)
)
cat("crps.matrix:\n")
system.time(
loo:::crps.matrix(as.matrix(1:3), as.matrix(4:6), 5, permutations=N)
)
Output on my machine:
loo version: 2.10.1
crps.numeric:
user system elapsed
0.007 0.002 0.009
crps.matrix:
user system elapsed
6.954 0.033 6.989
I believe the issue is with this line:
|
crps.matrix(as.matrix(x), as.matrix(x2), y, permutations) |
The permutations argument gets absorbed into the ...; I believe it needs to be passed as a named argument.
Also applies to scrps.numeric.
Minimal reproducible example:
Output on my machine:
I believe the issue is with this line:
loo/R/crps.R
Line 97 in df27ade
The
permutationsargument gets absorbed into the...; I believe it needs to be passed as a named argument.Also applies to
scrps.numeric.