Code Monkey home page Code Monkey logo

mcmc_diagnostics's People

Contributors

betanalpha avatar danwaxman avatar jpkrooney avatar pitmonticone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcmc_diagnostics's Issues

Proposal: General Python improvements, compatibility with cmdstanpy, and packaging

Howdy, really appreciate having these diagnostics available. I am a cmdstanpy user and found it pretty straightforward to translate over the extract_ functions to be compatible.

While going through the code, I thought there were a few areas that could be improved. Some initial thoughts:

  1. There are some minor errors that I assume slipped through the cracks when translating these diagnostics from R to Python, e.g. there are some undefined variables, a NaN that should probably be a np.NaN, etc. Didn't hit any branches that caused errors when I ran the diagnostics myself, but either way those fixes would be easy.
  2. Building a general compatibility for both PyStan and cmdstanpy -- since you've already done most of the work with the extract_* functions, this could be as simple as implementing these functions for both the stan.StanFit objects and the cmdstanpy.stanfit.mcmc.CmdStanMCMC objects. This wouldn't be much work and would make it for any Python Stan users to take advantage of this diagnostic code.
  3. Packaging up the code base and making it PyPI installable. Intention here is just to make it so a Python Stan user could pip install mcmc-diagnostics or whatever the name should be and quickly incorporate these diagnostics into their workflow. I know this repo has a mix of R, PyStan2, PyStan3 implementations as well as documentation, so I'm not sure exactly if you'd want to separate things out or not.

With all of these suggestions, I would be happy to work on implementing them if you are at all interested in doing so. Personally, I think it would be great to have a diagnostic utility like as something that can be easily incorporated into one's workflow.

If you're interested in pull requests or have any particular desires for future direction here, I'd be interested in hearing about them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.