Code Monkey home page Code Monkey logo

bayesian-model-evaluation's Introduction

Binder

Bayesian Model Evaluation and Criticism

Good statisticians are able to explain their choices, justify their numbers, evaluate their own models, and share their results (in a reproducible fashion)! This tutorial demonstrates how to do all the above, using ArviZ.

Getting things setup

To get started, first identify whether you:

  1. Prefer to use the conda package manager (which ships with the Anaconda distribution of Python),
  2. Prefer to use pip
  3. Prefer to use docker
  4. Do not want to mess around with dev-ops, or
  5. Only want to view the website version of the notebooks.

1. Clone the repository locally

In your terminal, use git to clone the repository locally.

git clone [email protected]:arviz-devs/bayesian-model-evaluation.git 

Alternatively, you can download the zip file of the repository at the top of the main page of the repository. If you prefer not to use git or don't have experience with it, this a good option.

2. Download Anaconda (if you haven't already)

If you do not already have the Anaconda distribution of Python 3, go get it (note: you can also set up your project environment w/out Anaconda using pip to install the required packages; however Anaconda is great for data science and we encourage you to use it).

3. Set up your environment

3a. conda users

If this is the first time you're setting up your compute environment, use the conda to create an environment.

conda create -n bayes-eval

To activate the environment, use the conda activate command.

conda activate bayes-eval

If you get an error activating the environment, use the older source activate command.

source activate bayes-eval

Then follow the instructions for pip users.

3b. pip users

Please install all of the packages listed in the requirements.txt file.

pip install -r requirements.txt

3c. Docker Users

An image can be built from the root directory of the repository using the command. This will build an image on your computer with all dependencies and environment

./scripts/container.sh --build

Once an image is built a container can be started with the command

./scripts/container.sh --notebook

In your terminal a URL for the notebook server will be displayed. Copy and paste that into a browser. With that you'll have Jupyter in a container! If you're using docker you can skip step 4.

3d. Don't want to mess with dev-ops

If you don't want to mess around with dev-ops, click the following badge to get a Binder session on which you can compute and write code.

Binder

4. Open your Jupyter notebook in Jupyter Lab!

In the terminal, navigate to this directory and execute jupyter lab.

Navigate to the notebooks then 1_BayesianWorkflow and open notebook 1_Ins_BayesRefresher.ipynb.

4a. Want to view static HTML notebooks

If you're interested in only viewing the static HTML versions of the notebooks you can view them on github

Acknowledgements

We would like to thank the whole Bayes community for being open with learnings and material. For this tutorial in particular we'd like to thank Ari Hartikainen, Osvaldo Martin, and Eric Ma for providing feedback and content.

Feedback

Please leave feedback for us here! We'll use this information to help improve the teaching and delivery of the material. Issues and pull requests are also encouraged if you would like!

bayesian-model-evaluation's People

Contributors

allendowney avatar canyon289 avatar colcarroll avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mafrasiabi

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.