Giter Site home page Giter Site logo

teddygroves / bibat Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 2.0 38.1 MB

A batteries-included template for Bayesian data analysis projects

Home Page: https://bibat.readthedocs.io/

License: MIT License

Makefile 0.15% Python 2.41% Stan 0.17% TeX 0.46% Jupyter Notebook 42.32% HTML 54.49%
arviz bayesian-statistics cmdstanpy cookiecutter mcmc python stan template-project

bibat's People

Contributors

teddygroves avatar

Stargazers

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

Watchers

 avatar  avatar

bibat's Issues

SBC

Add a step implementing model checking by simulation based calibration

Optionally remove example analysis

The example analysis is useful for getting started with bibat, but it might be nice to have the option for experienced users to remove it, avoiding the need to manually delete or edit any example analysis files.

Basic plotting

There should be a script for drawing plots based on a finished fit. For example

  • plot obervations vs predictive intervals
  • plot marginal posteriors

reloo

It should be possible to use the arviz reloo function as well or instead of the standard compare one in order to cover cases where the loo log likelihood can't be reliably estimated for some observations.

Better __init__.py

Main thing to do is add an __all__ that indicates what belongs to bibat.

Merge makefiles

It feels strange to me to have two different makefiles, one specific for docs and the other for all other parts of the analysis. I think it adds an extra barrier to keeping docs up to date

json input data

There should be an option for input data to be in json format.

In this case the default data and some of the functions will need to be changed.

comments on the vignette

The link to data from the 2006 Major league season is not rendered correctly (6th paragraph in intro)

"After I answered the wizard’s questions bibat creted a new folder called baseball that looked like this:" answers should be in the vignette (save author names and email, or maybe even with those and using placeholder ones)

I don't understand the part about "Since this worked, I added a new makefile target for the raw data files:", the . at the beginning of the last line doesn't look right but more importantly, this is not used anywhere.

Naming of paths is inconsistent accross vignette. Given how there are multiple files with similar names, I would stick to paths relatives to the project home for everything. For example, right at the beginning, we start editing src/prepared_data.py, then we move onto data_preparation_functions.py (which lives inside src too) and right after to prepare_data.py (now in the project home).

"To check that all this works, we can run the script prepare_data.py manually or using make analysis." doesn't work with make analysis because tests still refer to example data. Moreover, when running python prepare_data.py I get a pydantic validation error.

stopped here for now

Richer example model

The example model is currently a simple linear regression. It might be nicer to make it a bit richer, perhaps a varying-intercept multilevel model.

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.