facebookexperimental / Robyn

Robyn is an experimental, AI/ML-powered and open sourced Marketing Mix Modeling (MMM) package from Meta Marketing Science. Our mission is to democratise modeling knowledge, inspire the industry through innovation, reduce human bias in the modeling process & build a strong open source marketing science community.
https://facebookexperimental.github.io/Robyn/
MIT License
1.07k stars 323 forks source link

Error in signif(nevergrad_hp_val[[co]][index], 10) : non-numeric argument to mathematical function #1006

Closed TJh0110 closed 6 days ago

TJh0110 commented 1 week ago

Project Robyn

Describe issue

after the nevergrad compatibility issue, I am getting this error while trying to run robynoutput function { Error in signif(nevergrad_hp_val[[co]][index], 10) : non-numeric argument to mathematical function }

Environment & Robyn version

Make sure you're using the latest Robyn version before you post an issue.

packageVersion("Robyn") [1] ‘3.11.0’

Input data has 208 weeks in total: 2015-11-23 to 2019-11-11 Initial model is built on rolling window of 157 week: 2016-01-04 to 2018-12-31 Time-series validation with train_size range of 50%-80% of the data... Using geometric adstocking with 20 hyperparameters (20 to iterate + 0 fixed) on 11 cores

Starting 5 trials with 2000 iterations each using TwoPointsDE nevergrad algorithm... Running trial 1 of 5 | | 0%Timing stopped at: 0 0 0 Error in signif(nevergrad_hp_val[[co]][index], 10) : non-numeric argument to mathematical function

gufengzhou commented 6 days ago

The Nevergrad numpy2 update is shipped. Have you guys re-installed the package and restarted R? This error usually occurs when the R session is not restarted.

JayLiangMKT commented 6 days ago

The Nevergrad numpy2 update is shipped. Have you guys re-installed the package and restarted R? This error usually occurs when the R session is not restarted.

I fixed my issues by reinstalled latest R when I detected that the "reticulate" package was built on a later R version. Works for me. Thank you!