Skip to content

Remove sd optional kwarg from distributions #5576

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

Closed
ricardoV94 opened this issue Mar 11, 2022 · 7 comments · Fixed by #5583
Closed

Remove sd optional kwarg from distributions #5576

ricardoV94 opened this issue Mar 11, 2022 · 7 comments · Fixed by #5583
Assignees

Comments

@ricardoV94
Copy link
Member

ricardoV94 commented Mar 11, 2022

Several continuous univariate distributions have an old undocumented alternative sd kwarg, which should be removed in favor of sigma

This was brought up in #5546 and discussed internally in Slack

@ricardoV94
Copy link
Member Author

@purna135 Do you want me to assign this issue to you?

@purna135
Copy link
Member

Yes, Please ☺️

Can I remove sd from all distributions where it is required and create a single RP?

@ricardoV94
Copy link
Member Author

Yes, Please relaxed

Can I remove sd from all distributions where it is required and create a single RP?

Yes, that would be the best

@purna135
Copy link
Member

Hi @ricardoV94,
removing sd from pymc/distributions/mixture.py and pymc/distributions/timeseries.py resulting some test fail with bellow messages.

55/76 files pass as expected.
2 files unexpectedly passed the type checks:
pymc/sampling_jax.py
pymc/step_methods/sgmcmc.py
This is good news! Go to scripts/run-mypy.py and add them to the list.

I am making a draft PR, please have a look.

@ricardoV94
Copy link
Member Author

ricardoV94 commented Mar 12, 2022

Hi @ricardoV94,
removing sd from pymc/distributions/mixture.py and pymc/distributions/timeseries.py resulting some test fail with bellow messages.

55/76 files pass as expected.
2 files unexpectedly passed the type checks:
pymc/sampling_jax.py
pymc/step_methods/sgmcmc.py
This is good news! Go to scripts/run-mypy.py and add them to the list.

I also see that locally in some of my PRs regardless of what I change, but it fails on Github if I add those to the list. CC @michaelosthege

@michaelosthege
Copy link
Member

Hi @ricardoV94,
removing sd from pymc/distributions/mixture.py and pymc/distributions/timeseries.py resulting some test fail with bellow messages.

55/76 files pass as expected.
2 files unexpectedly passed the type checks:
pymc/sampling_jax.py
pymc/step_methods/sgmcmc.py
This is good news! Go to scripts/run-mypy.py and add them to the list.

I also see that locally in some of my PRs regardless of what I change, but it fails on Github if I add those to the list. CC @michaelosthege

Run it always as pre-commit run mypy --verbose. The difference is due to which dependencies are installed in your vs. the pre-commit environment.

@purna135
Copy link
Member

Thank you : )

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 a pull request may close this issue.

3 participants