pymc-marketing: Cannot save/load model

Using version 0.11.0. Trying to save the model using pickle, but it gives the following error: PicklingError: Can't pickle <function create_dim_handler.<locals>.func at 0x00000202218598A0>: it's not found as pymc_marketing.prior.create_dim_handler.<locals>.func

I’ve tried joblib and pickle. Both result in this error.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 25 (9 by maintainers)

Most upvoted comments

causal_dag = “”“digraph {x1 -> y; x2 -> y; x1 -> x2; holiday_signal -> y; holiday_signal -> x1; holiday_signal -> x2; competitor_offers -> x2; competitor_offers -> y; market_growth -> y;}”“”

Same configuration but I tried to save and load.