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.08k stars 322 forks source link

fix: when all values on a column are negative crash #871

Closed laresbernardo closed 7 months ago

laresbernardo commented 7 months ago

When running robyn_run(), if a value contained "only negative values", it returned this error:

Error in { : 
  task 1 failed - "arguments imply differing number of rows: 16, 17"

Fixed by checking on robyn_input() when all values from any column are negative (or zero) and transform it with abs().