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

negbin latent projection in latent vignette fails with parallel #497

Open
avehtari opened this issue Apr 12, 2024 · 1 comment
Open

negbin latent projection in latent vignette fails with parallel #497

avehtari opened this issue Apr 12, 2024 · 1 comment
Labels
bug Bugs.

Comments

@avehtari
Copy link
Collaborator

Run latent.Rmd vignette until refm_nebin has been created. cv_varsel() works with parallel=FALSE, but

registerDoFuture();
plan(multisession, workers=8);
vs_nebin <- cv_varsel(refm_nebin, d_test = d_test_lat_poiss, method = "L1", nclusters_pred = 20, nterms_max = 14, parallel=TRUE)

fails with an error

Error in { : task 1 failed - "object 'refm_prec' not found"
@fweber144
Copy link
Collaborator

Thanks for reporting. We probably need to replace lines

.export = c("one_obs", "dot_args"),
and
.export = c("one_fold", "dot_args"),
by something like

.export = c("one_obs", "dot_args", getOption("projpred.export_to_workers", character())),

and

.export = c("one_fold", "dot_args", getOption("projpred.export_to_workers", character())),

respectively. Then users can set the global option projpred.export_to_workers as needed.

@fweber144 fweber144 added the bug Bugs. label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs.
Projects
None yet
Development

No branches or pull requests

2 participants