facebookexperimental / facebookexperimental/Robyn
Error in { : task 1 failed - "arguments imply differing number of rows: 21, 23
- Dominant language
- Jupyter Notebook
- Stars
- 1.5k
- Forks
- 433
- PR merge metrics
- No merged PRs in 30d
Description
Hey Robyn team,
I'm running into a error when attempting a first model refresh and would love your help. I think the issue could be down to variable mismatch between the original and refresh data.
I get "Error in { : task 1 failed - "arguments imply differing number of rows: 21, 23" running the code below.
Im running packageVersion("Robyn")
[1] ‘3.12.0.9006’
Note this error changes when i set "dt_holidays = NULL", to "Error in { : task 1 failed - "arguments imply differing number of rows: 18, 20"
Thanks for your help!!
**CODE EXAMPLE:**
json_file <-"/Users/paulfagan/Desktop/Robyn_202503271625_init/RobynModel-2_376_10.json"
> RobynRefresh <- robyn_refresh(
+ json_file = json_file,
+ dt_input = dt_input,
+ dt_holidays = dt_prophet_holidays,
+ refresh_steps = 99,
+ refresh_iters = 2000, # 1k is an estimation
+ refresh_trials = 6,
+ calibration_input = NULL,
+ )
>>> Recreating 2_376_10
Imported JSON file successfully: /Users/paulfagan/Desktop/Robyn_202503271625_init/RobynModel-2_376_10.json
>> Running feature engineering...
Input data has 851 days in total: 2023-01-01 to 2025-04-30
Initial model is built on rolling window of 387 day: 2024-01-01 to 2025-01-21
>>> Calculating response curves for all models' media variables (19)...
|====================================================================================================| 100%
Successfully recreated model ID: 2_376_10
>>> Building refresh model #1 in manual mode
>>> New bounds freedom: 25.58%
>> Running feature engineering...
Input data has 851 days in total: 2023-01-01 to 2025-04-30
Refresh #1 model is built on rolling window of 387 day: 2024-04-09 to 2025-04-30
Rolling window moving forward: 99 days
Fitting time series with all available data...
Using geometric adstocking with 59 hyperparameters (58 to iterate + 1 fixed) on 11 cores
>>> Starting 6 trials with 2000 iterations each with calibration using TwoPointsDE nevergrad algorithm...
Running trial 1 of 6
| | 0%Timing stopped at: 0.019 0.312 0.532
Error in { :
task 1 failed - "arguments imply differing number of rows: 21, 23"
In addition: Warning message:
In prophet_decomp(dt_transform, dt_holidays = InputCollect$dt_holidays, :
Currently, there's a known issue with prophet that may crash this use case.
Read more here: https://github.com/facebookexperimental/Robyn/issues/472
Contributor guide
Assessment
This issue has not been assessed yet.