Closed MustafaCelen closed 1 year ago
library(foreach)
doFuture::registerDoFuture()
library(doRNG)
with this lines of codes , the warning does not appear anymore
Hi @MustafaCelen thanks for sharing.
(...) is there a way to specify number of cores during
robyn_outputs()
? Yes. You could change the cores value inOutputModels
manually:OutputModels$cores <- X
.
We are not using doFuture's registerDoFuture
but doParallel's registerDoParallel
though, which is triggered here.
I am still getting the error when I am trying to get many one pager reports, I dont use clusters and try to get all of the pareto front results(usually between 100-200), i think it is better for me to analyse the output csv and decide which ones to create then i ll just use the robyn_onepagers func to create them. But I think there is a problem with the memory usage , even with 144gb and 72core cpu its taking so long for outputs.
Are you saying you're outputting 100-200 pareto_fronts? That's too much. If you turn off clustering, try starting with few fronts, like 3 or so. If you have lots of iterations, 3 fronts will already give you quite some candidates and these are the best
No , but i dont cluster my pareto front results , to clarify you can see how i use it. I am trying 10k iterations with 10 trials, i have 150 weeks of data with 8 media and 2-3 context vars. Do you think I should increase my iterations or trials or is this enough?
OutputCollect <- robyn_outputs( InputCollect, OutputModels,
csv_out = "pareto", # "pareto", "all", or NULL (for none) clusters = FALSE, # Set to TRUE to cluster similar models by ROAS. See ?robyn_clusters plot_pareto = TRUE, # Set to FALSE to deactivate plotting and saving model one-pagers plot_folder = robyn_object, # path for plots export
export = TRUE # this will create files locally )
Old ticket. Please reopen if necessary.
In mclapply(argsList, FUN, mc.preschedule = preschedule, mc.set.seed = set.seed, : scheduled cores 1, 2, 3, 4 did not deliver results, all values of the jobs will be affected
I got the above error at the end of runnning robyn_outputs() function , it returns all the one pager reports etc. however the error saying values will be effected is not nice, i am not sure if this refers to the actual values on my plots and they are actually affected.
I cant share my data but the code so far is down below ,i tried assigning only one core in robyn outputs function however it didnt work, still tries to use all the cores , is there a way to specify number of cores during robyn_outputs()