Skip to content
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

supressing ArviZ warning and allowing step selection #213

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

michaelraczycki
Copy link
Collaborator

Small upgrade, allowing to select step function using sampler_config.
On the side there's a small fix, suppressing ArviZ warning that appears each time dataset is added to idata

Copy link
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some question about configuration and testing

if "step" in sampler_args:
step_function_name = sampler_args["step"]
step_function = getattr(pm, step_function_name)
sampler_args["step"] = step_function()
Copy link
Member

@ricardoV94 ricardoV94 Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

step_function may need arguments as well

"step": "Slice",
}
model = test_ModelBuilder(sampler_config=sampler_config)
model.fit(toy_X, toy_y)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe monkeypatch pm.sample to confirm it was called with step and that's instance(step, Slice)?

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

Successfully merging this pull request may close these issues.

2 participants