Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in kfold help page regarding future #1569

Closed
yanivabir opened this issue Nov 27, 2023 · 1 comment
Closed

error in kfold help page regarding future #1569

yanivabir opened this issue Nov 27, 2023 · 1 comment
Milestone

Comments

@yanivabir
Copy link

In the kfold.brmsfit help page, the following is given in the example of how to use future:

library(future)
plan(multiprocess)
kfold(fit1, chains = 1)

The call to plan results in an error. I believe it should be:

plan("multicore")

Note both the string and the different term.

In general, the help page is a little lacking as to how the parallelization works. It took me a lot of trial and error to figure out that cores is ignored, and that I should overwrite the threads argument from the original model to match the number of available cores per fold.

@paul-buerkner paul-buerkner added this to the 2.21.0 milestone Nov 27, 2023
@paul-buerkner
Copy link
Owner

I hope the documention is now a bit better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants