You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using mirai_map for parallel prediction with BART models, I get back an array with the expected dimensions but filled in only with "0.5" (sometimes as numeric, sometimes even as characters!) instead of the expected posterior, e.g: chr [1:1000, 1:1000] "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" ...
The same code works correctly when run sequentially, but it also fails with other parallelization backends, like futures + furrr::future_map.
Which returns: num [1:1000, 1:9] 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 ...
if in parallel and num [1:1000, 1:9] 0.00104 0.0018 0.00163 0.00252 0.00509 ...
if sequential.
Environment Information
R version: 4.4.2
dbarts version: 0.9-30
mirai version: 2.0.1
Platform: Mac Os 15.3
Btw, isn't there a way to harness parallel computing when predicting? or some other possible prediction speed up in general?
The text was updated successfully, but these errors were encountered:
Hi!
When using
mirai_map
for parallel prediction with BART models, I get back an array with the expected dimensions but filled in only with "0.5" (sometimes as numeric, sometimes even as characters!) instead of the expected posterior, e.g:chr [1:1000, 1:1000] "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" "0.5" ...
The same code works correctly when run sequentially, but it also fails with other parallelization backends, like futures + furrr::future_map.
Reprex:
Which returns:
num [1:1000, 1:9] 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 ...
if in parallel and
num [1:1000, 1:9] 0.00104 0.0018 0.00163 0.00252 0.00509 ...
if sequential.
Environment Information
Btw, isn't there a way to harness parallel computing when predicting? or some other possible prediction speed up in general?
The text was updated successfully, but these errors were encountered: