← all repositories
facebookexperimental/Robyn

Meta semi-automates the marketing budget black box

Robyn exists to drag marketing mix modeling out of the consulting-firm black box and into an open-source, semi-automated tool that privacy-conscious advertisers can actually run in-house.

1.5k stars Jupyter Notebook Domain Apps
Robyn
Not currently ranked — collecting fresh signals.
star history

What it does

Robyn is a semi-automated Marketing Mix Modeling package from Meta that defines media channel efficiency and effectivity. It uses Ridge regression, evolutionary hyperparameter search, time-series decomposition, and gradient-based budget optimization to explore adstock rates and saturation curves across granular datasets. The goal is to tell advertisers where their money is working without relying on user-level tracking.

The interesting bit

The Python version is essentially an LLM-translated port of the R codebase—Meta used Llama and other AI workflows to convert R to Python, and they openly admit it may contain translation bugs. Even stranger, the native Python port still requires R and the glmnet package installed on your system, so it is not quite a clean escape from R’s orbit.

Key highlights

  • Built for granular datasets with many independent variables, especially digital and direct-response advertising
  • Privacy-safe alternative to user-level attribution as measurement privacy requirements tighten
  • R version is mature and CRAN-published; Python version is explicitly labeled Beta
  • Includes automated budget allocation and clustering of model results
  • MIT licensed with an official Meta Blueprint training course available

Caveats

  • The Python native version is LLM-translated from R and may contain bugs; it also requires R and glmnet to be present on the machine
  • The separate Python API wrapper is a Plumber-based R service in disguise, so “Python support” currently means either a translation layer or an R dependency

Verdict

Marketing analysts and data scientists at mid-size or large digital advertisers should look at the R version first. Pure-Python shops should wait unless they are comfortable debugging LLM-translated code and keeping R installed.

Frequently asked

What is facebookexperimental/Robyn?
Robyn exists to drag marketing mix modeling out of the consulting-firm black box and into an open-source, semi-automated tool that privacy-conscious advertisers can actually run in-house.
Is Robyn open source?
Yes — facebookexperimental/Robyn is open source, released under the MIT license.
What language is Robyn written in?
facebookexperimental/Robyn is primarily written in Jupyter Notebook.
How popular is Robyn?
facebookexperimental/Robyn has 1.5k stars on GitHub.
Where can I find Robyn?
facebookexperimental/Robyn is on GitHub at https://github.com/facebookexperimental/Robyn.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.