Replies: 1 comment 2 replies
-
Hi. Could you share the full traceback? The save method is a light wrapper around arviz save function, is it possible to save any other way? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I’m encountering an issue when trying to save a PyMC Marketing Model in Databricks. Here’s the context:
I successfully ran the model, and when I attempt to save it using the .save() method, I get the following error:
AttributeError: 'TimedeltaIndex' object has no attribute 'unit'File <command-2594243823868214>, line 1 ----> 1 mmm.save("model.nc")
The stack trace indicates an issue in xarray while attempting to use to_netcdf. Specifically, it seems related to the handling of a TimedeltaIndex in time_deltas.unit.
Additional Details:
Environment: Running the code on Databricks.
PyMC-Marketing Version: pymc_marketing-0.10.0.
Has anyone encountered this error or knows how to resolve it?
Thank you for any insights!
Beta Was this translation helpful? Give feedback.
All reactions