-
Notifications
You must be signed in to change notification settings - Fork 364
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 Refreshing Previous Model- ValueError: zero-size array to reduction operation minimum which has no identity #376
Comments
can you try loading your robyn_object with
and then just having the
|
Hi - were you able to resolve this issue? |
@kyletgoldberg I see the same issue. When running with the
There is an immediate error of: When loading as described in the demo.R file https://github.com/facebookexperimental/Robyn/blob/main/demo/demo.R#L531-L549
|
I'm having the same issue. Running on version 3.7.0.
The robyn_object being used is the result of loading an old model
|
Try passing
If you're in 3.7.0 (as intended in the demo.R file) you don't need to specify the Can any of you two share a reproducible example so we can debug this issue? If the RDS file is too large, feel free to use any online sharing link and add it there as a comment. Thanks! |
@laresbernardo I will try to make the time to test it with the demo data. But my process that is failing is essentially.
|
Can you please share you |
@laresbernardo this replicates the error on my machine (ubuntu) using the demo data.
|
I was able to reproduce the issue. Thanks for your example @sziolko Will get back to you once I fix it |
What's happening here is that we don't have the hyper-parameter bounds for each of those fixed hyper-parameters. Let me think of a way to deal with these cases and will update this ticket. |
@sziolko with the new method of exporting Robyn models to recreate them, this issue is fixed. Can you please update to the latest dev version and retry? You can use the demo.R file to see how it works, especially the last section. |
Please reopen if this issue reoccurs. |
Getting the same issue, opened a new one here #761 |
Project Robyn
Describe issue
Added a model built under previous version of Robyn, using same data set/ fixed hyperparameters, and saved into Robyn object. When I try to run that model through robyn_refresh(), receiving the error:
`>>> Initial model loaded
Traceback:
7.
stop(structure(list(message = "ValueError: zero-size array to reduction operation minimum which has no identity",
call = py_call_impl(callable, dots$args, dots$keywords),
cppstack = NULL), class = c("Rcpp::exception", "C++Error",
"error", "condition")))
6.
amin at <array_function internals>#180
5.
ng$p$Array(shape = my_tuple, lower = 0, upper = 1)
4.
robyn_mmm(InputCollect = InputCollect, hyper_collect = hyper_collect,
iterations = iterations, cores = cores, nevergrad_algo = nevergrad_algo,
intercept_sign = intercept_sign, add_penalty_factor = add_penalty_factor,
refresh = refresh, seed = seed + ngt, quiet = quiet)
3.
robyn_train(InputCollect, hyper_collect = hyps, cores, iterations,
trials, intercept_sign, nevergrad_algo, dt_hyper_fixed, add_penalty_factor,
refresh, seed, quiet)
2.
robyn_run(InputCollect = InputCollectRF, plot_folder = objectPath,
plot_folder_sub = plot_folder_sub, calibration_constraint = listOutputPrev[["calibration_constraint"]],
add_penalty_factor = listOutputPrev[["add_penalty_factor"]],
iterations = refresh_iters, trials = refresh_trials, pareto_fronts = 3, ...
1.
robyn_refresh(robyn_object = "OSBModel_BASE.RDS", dt_input = dt_input,
dt_holidays = dt_holidays, refresh_steps = 4, refresh_mode = "AUTO",
refresh_iters = 1000, refresh_trials = 3, clusters = TRUE)`
Appears to be an issue with hyperparameters being passed to nevergrad
Provide dummy data & model configuration
Model rebuild using original data set included, refresh using refresh data set. Hyperparameters and code also included
osb_input_original_scaled.csv
osb_input_refresh_scaled.csv
pareto_hyperparameters.csv
robyn_refresh_error_code.txt
Environment & Robyn version
R version 4.1.2
Robyn version 3.6.2
all other packages up to date
The text was updated successfully, but these errors were encountered: