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.13k stars 334 forks source link

recretate a refreshed model #895

Open iuiu34 opened 9 months ago

iuiu34 commented 9 months ago

Hi, how can i recreate a refreshed model?

docs does not cover it.

and

RobynRecreated <- robyn_recreate(
  json_file = json_file,
  dt_input = dt_simulated_weekly,
  dt_holidays = dt_prophet_holidays,
  quiet = FALSE)

does not work when json_file comes from a dumped refresh model. Like one in the docs for example

RobynRefresh <- robyn_refresh(
  json_file = json_file,
  dt_input = InputCollectX$dt_input,
  dt_holidays = InputCollectX$dt_holidays,
  refresh_steps = 6,
  refresh_mode = "manual",
  refresh_iters = 1000,
  refresh_trials = 1
)

raising

Timing stopped at: 0.14 0 0.14
Error in { : 
  task 1 failed - "arguments imply differing number of rows: 22, 24"

version robyn 3.9

gufengzhou commented 7 months ago

Sorry for the late reply. It's a very old Robyn version you're using though. Can you please update to the latest and retry?