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

Add Type Hints to distribution parameters #5358

Open
Tracked by #7053
canyon289 opened this issue Jan 15, 2022 · 14 comments
Open
Tracked by #7053

Add Type Hints to distribution parameters #5358

canyon289 opened this issue Jan 15, 2022 · 14 comments

Comments

@canyon289
Copy link
Member

canyon289 commented Jan 15, 2022

Add type hints to distribution parameters as demonstrated by this PR.
#5315

If multiple people are interested in this we split this up by module

@nvasilevv
Copy link

Hi @canyon289, if you do not mind, I can pick that?

@canyon289
Copy link
Member Author

@nvasilevv sure thing! Do you know which file(s) you want to start with? I'll open up a subissue for you so this can be address in parts

@nvasilevv
Copy link

Well, I do not have preferences. I have a brief question on #5315. I saw that no type hints were used here. Any reason why this is the case? There are other instances within the file where such changes were skipped, but looks like such are possible. Was this out of the scope of the PR or is there something I am missing? Thanks

@mjhajharia
Copy link
Member

mjhajharia commented Jan 26, 2022

hi @nvasilevv, thanks for volunteering to contribute! did you open a pull request? if not, can you choose a submodule so we can create more issues and split up the work, it would be easier for you to contribute and us to manage the workflow that way! let me know if you need help

@nvasilevv
Copy link

Hi @mjhajharia, sorry for the late reply. I can start with the discrete distributions if that is ok with everyone.

@canyon289
Copy link
Member Author

canyon289 commented Feb 1, 2022

@nvasilevv discrete distributions sounds great. I'll add a note to the issue to indicate your assignment. Thanks for your continued interest

@purna135
Copy link
Member

purna135 commented Mar 2, 2022

Hello, I'd like to work on this but don't know where to begin; could you possibly point me in the right direction?
Thanks

@hectormz
Copy link
Contributor

hectormz commented May 3, 2022

@canyon289 @mjhajharia I was looking through what remains to be done for this. Are you trying to update the type hints for all def dist() with current types of:

  • np.ndarray or
  • int or
  • float or
  • TensorVariable

?

@canyon289
Copy link
Member Author

hey hector, all the ones that are applicable!

@soma2000-lang
Copy link
Contributor

@canyon289 Working on the mixture

@iykat
Copy link
Contributor

iykat commented Apr 1, 2023

@canyon289 working on continuous.

@canyon289
Copy link
Member Author

Thanks!

@johanbog
Copy link

As the PR for discrete distributions was never merged, I'm picking that up now.

@fergur
Copy link

fergur commented Jun 15, 2024

I'll take a look at this one. (hackathon)

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

No branches or pull requests

9 participants