Skip to content

Errors in GP-circular notebook #790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fedor-goncharov opened this issue Apr 29, 2025 · 0 comments
Open

Errors in GP-circular notebook #790

fedor-goncharov opened this issue Apr 29, 2025 · 0 comments

Comments

@fedor-goncharov
Copy link

fedor-goncharov commented Apr 29, 2025

Notebook Title: GP-Circular
Notebook URL: URL

Issue description

The notebook is broken, possibly due to new version of PyMC.
I advise to follow the link for the source code. Running the last command

 plot_kernel_results(circular)

gives error on command

trace = pm.sample_posterior_predictive([mp], var_names=["y"], samples=100)

saying that keyword 'samples' is unknown.

This keyword is also absent in official docs right now,
but is present in previous tutorials, say in year 2022 (it is actually a pain that it was changed and
who the hell knows how to set number of samples).

I have tried to just remove this keyword (assuming that some default number of samples will be
generated) - but then next command fails

    paths = plt.polar(angles, trace["y"].T, color="b", alpha=0.05)

with error that 'trace' has no key 'y'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant