Closed pvizan-artefact closed 5 months ago
Hi @pvizan-artefact, This error is caused by the small number of models created by robin_run. In Step 3, can you increase the number of iterations or trials (for example, iterations=2000, trials=5, etc.) and try again to see if the error can be corrected?
@yu-ya-tanaka the suggested change does indeed solve the error (changing iterations from 200 to 2000). Only doubt I still have is why decreasing the number of iterations causes this error? How does it change the value of pareto_fronts and makes the code crash? Is there a rule of thumb for the number of iterations needed for the pareto_fronts = "auto" to work? Thanks a lot!
@pvizan-artefact If pareto_fronts=“auto", 100 models are selected. In your case, I think you got error with the following flow.
Regarding iterations size, 2000 is recommended for the dummy dataset with no calibration. We recommend to run at least 2000 iterations per trial and 10 trials to build initial model with calibration. But this is a general guide and you need to consider what iterations and trials is best based on your input data with checking convergence, model performance, and match with business sense.
Project Robyn
Describe issue
I cannot get the demo notebook to complete execution when using calibration. For context, I am able to run the notebook top to bottom and generate all the outputs. (just ommitting the lines of code meant for different OS than mine, and changing the variable
select_model
as well as other references to models ID: I change the variable to the firstsolID
inOutputCollect['clusters']['models']
)However, if I try to rerun this successfully completely executed notebook after having uncommented the cells of code under step "2-4: Fourth (optional), model calibration / add experimental input", my code stops after running the following code:
At this point (after the API request), I get an error that comes from the Rproject subprocess that is initiated at the top of the notebook, that states the following:
The code does work if the
pareto_fronts
variable is changed to another value like 18, for example. But I am not sure what is a good value that replaces "auto" that is not "auto". Furthermore, I would like to know if this issue happens to other people as well.Information about device
Provide reproducible example
You can reproduce the error by applying the following changes on the demo notebook:
OutputCollect['clusters']['models']
(access thesolID
attribute of the item.Environment & Robyn version
Robyn version: 3.10.5.9012 R version 4.3.2 (2023-10-31) -- "Eye Holes"