question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bayesian variable (one-object mode)

See original GitHub issue

I think we could wrap our mcmc parameters in a custom class that would make it easier to work with the mcmc results (in the spirit of rval (?) in posterior package).

In mcmc world (samples)

Scalar -> shape=chain,draw Vector -> shape=chain,draw,vector_dim Matrix -> shape=chain,draw,*matrix_dims

example

When we want to do matrix * vector product with mcmc results, we need to be careful that correct dimensions are used -> Bayesian variable could handle this so the variable would work as any non-mcmc variable.

repr

We don’t always need to show all the samples for users but it might be better show some specific statistics (e.g. mean, std)

Our html output could also have other info, rhat/ess (maybe even density picture?)

Similar work can be seen in https://pythonhosted.org/uncertainties/

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
grburgesscommented, Apr 20, 2021

I like this idea. I’ve worked on similar things in the past and will be willing to help.

1reaction
OriolAbrilcommented, Mar 21, 2022

I have written down and organized everything I had scattered around and tried to make the library somewhat coherent. Somehow I had forgotten about this issue until today.

Here is the link: https://xarray-einstats.readthedocs.io/en/latest/. It has linear algebra wrappers from numpy, rv and summary wrappers from scipy.stats, a couple wrappers for einops (ignoring coord values) and a super cool (if I may say so myself 😎) histogram that bins in a vectorized way along any given dimensions (powered by numba).

I am currently updating some examples from the pymc collection to use xarray-einstats to test it a bit more and iron it out, then make a 0.2 release and start advertising it more broadly. Feature requests, suggestions and collaborations always welcome whatever the release state though

Read more comments on GitHub >

github_iconTop Results From Across the Web

BAYESIAN VARIABLE SELECTION FOR SURVIVAL DATA ...
proposed a method based on approximating the posterior distribution of the parameters in the proportional hazard model by defining a Gaussian ...
Read more >
BAS: Bayesian Variable Selection and Model Averaging using ...
Description. Creates an object representing the prior distribution on models for BAS. Usage. Bernoulli(probs = 0.5). Arguments probs a scalar or ...
Read more >
R2GUESS: A Graphics Processing Unit-Based R Package for ...
Package for Bayesian Variable Selection Regression ... The mode of the distribution of σ2 is at b/(1 + a) and a relatively uninformative...
Read more >
Methods and Tools for Bayesian Variable Selection and ...
2 Bayesian variable selection in Linear Models ... The simplest summary of the posterior model distribution (3) is its mode.
Read more >
Bayesian network - Wikipedia
A Bayesian network is a probabilistic graphical model that represents a set of variables and their conditional dependencies via a directed acyclic graph ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found