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

Call for use cases and examples #3

Open
rlouf opened this issue Feb 11, 2020 · 7 comments
Open

Call for use cases and examples #3

rlouf opened this issue Feb 11, 2020 · 7 comments
Labels
example Fixing or adding an example good first issue Good for newcomers

Comments

@rlouf
Copy link
Owner

rlouf commented Feb 11, 2020

Examples

ˋmcx` is only interesting if it can be used and we need more example to showcase the way the library can be used. Examples are a great way to get acquainted with the library and make a first contribution.

We are particularly looking for examples that use:

  • Batching (vectorized sampling) on CPU, GPU or TPU;
  • Sequential inference;

Use cases

If there is a use case for which you would consider using mcx but cannot because something is missing, let us know in the comments.

@rlouf rlouf added good first issue Good for newcomers example Fixing or adding an example labels Feb 11, 2020
@rlouf rlouf pinned this issue Feb 11, 2020
@rlouf
Copy link
Owner Author

rlouf commented Apr 2, 2020

Some ideas:

In terms of practical examples:

  • Bayesian workflow
  • How to use mcx in a production environment (getting logs, faster inference w/o progress bars, list of exceptions raised and their meaning, etc.)

@miretchin
Copy link

Statistical rethinking examples would be really great to have! Some of the chapters won't yet be possible because it looks like the required distributions are missing, particularly the discrete distributions Beta Binomial, Gamma Poisson, Zero-Inflated Poisson (or zero-inflated negative binomial), and Ordered Logit / Probit.

@rlouf
Copy link
Owner Author

rlouf commented Sep 15, 2020

Indeed! I will bump the implementation of discrete distributions so that the first release contains enough functionalities to implement most of the examples from Statistical Rethinking.

@elanmart
Copy link

Hi @rlouf , if I wanted to start implementing the Statistical Rethinking examples in mcx, should I go with master branch? Or the compiler-refactor?

@rlouf
Copy link
Owner Author

rlouf commented Feb 20, 2021

Awesome! compiler-refactor is the branch with the most recent version of the API. By the time you finish it should be merged :)

I started here but there's almost nothing: https://github.com/mcx-ppl/statistical-rethinking-mcx. Note that the sample method of distributions returns a 1-dimension array for now, but will soon be a float (PR on the way).

@elanmart
Copy link

elanmart commented Feb 22, 2021

@rlouf thanks, I'm actually using the book as intro to bayesian methods, so I was planning to implement stuff myself anyway :)

I started with chapters 2 and 3 today (both are still WIP): https://github.com/elanmart/rethinking-2

@rlouf
Copy link
Owner Author

rlouf commented Feb 22, 2021

Nice! Let me know if you bump into an issue with MCX, something not working or missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example Fixing or adding an example good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants