Skip to content

Examples should use numpyro only if installed #1398

Open
@ricardoV94

Description

When you install pymc-marketing numpyro is not a requirement, but in several examples it's used.

I suggest having a pymc_marketing._numpyro_if_available variable (name up to discussion) that is "numpyro" if it's installed and "pymc" if not. Then the examples where we may want numpyro would have nuts_sample=_numpyro_if_available, and work.

In #1357 I actually changed one of the NBs to have a try/except but that clutters NBs a bit too much?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentationgood first issueGood for newcomers . Doesn't require extensive knowledge of the repo and package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions