facebookexperimental / facebookexperimental/Robyn

error in `refreshAddedStartWhich:rollingWindowLength` when refreshing the model

Ouverte
#1,049 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Jupyter Notebook
Étoiles
1.5k
Forks
433
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hello.
When refreshing the model, I'm getting this error:

Error in `slice()`:
ℹ In argument: `refreshAddedStartWhich:rollingWindowLength`.
Caused by error in `refreshAddedStartWhich:rollingWindowLength`:
! argument of length 0
---
Backtrace:

1. ├─Robyn::robyn_refresh(...)
2. │ └─Robyn::robyn_run(...)
3. │ └─Robyn::robyn_train(...)
4. │ └─Robyn::robyn_mmm(...)
5. │ └─select(dt_inputTrain, all_of(paid_media_spends)) %>% ...
6. ├─dplyr::slice(., refreshAddedStartWhich:rollingWindowLength)
7. ├─dplyr:::slice.data.frame(., refreshAddedStartWhich:rollingWindowLength)
8. │ └─dplyr:::slice_rows(.data, dots, by)
9. │ └─dplyr:::slice_eval(mask, dots, error_call = error_call, user_env = user_env)
10. │ ├─base::withCallingHandlers(...)
11. │ └─mask$eval_all(quo(impl(!!!dots)))
12. ├─dplyr (local) impl(refreshAddedStartWhich:rollingWindowLength)
13. │ └─dplyr:::...elt2(i)
14. │ └─rlang::eval_bare(sym(paste0("..", i)), frame)
15. ├─refreshAddedStartWhich:rollingWindowLength
16. └─base::.handleSimpleError(``, "argument of length 0", base::quote(refreshAddedStartWhich:rollingWindowLength))
17. └─dplyr (local) h(simpleError(msg, call))
18. └─rlang::abort(bullets, call = error_call, parent = cnd)

Here is what it looks like.
![image](https://github.com/user-attachments/assets/11634da7-5fc4-4b12-a747-721951b40f88)

Here is the data I used:
[raw_data_refreshed_data_aug2024_included.csv](https://github.com/user-attachments/files/16947039/raw_data_refreshed_data_aug2024_included.csv)
[RobynModel-4_128_1.json](https://github.com/user-attachments/files/16947040/RobynModel-4_128_1.json)

thank you for any help

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.