All Projects → fonnesbeck → Mcmc_pydata_london_2019

fonnesbeck / Mcmc_pydata_london_2019

Licence: mit
PyData London 2019 Tutorial on Markov chain Monte Carlo with PyMC3

Projects that are alternatives of or similar to Mcmc pydata london 2019

Faceaging By Cyclegan
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Pixel2style2pixel
Official Implementation for "Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation"
Stars: ✭ 1,395 (+1228.57%)
Mutual labels:  jupyter-notebook
Ipywidgets Static
[obsolete] Static Widgets for IPython Notebooks
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Kaggle Ds Bowl 2018 Baseline
Full train/inference/submission pipeline adapted to the competition from https://github.com/matterport/Mask_RCNN
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Ml4music Workshop
Machine Learning for Music and Sound Synthesis workshop
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Cgoes
Research by Carlos Góes
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Spring2019 tutorials
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Cross Lingual Voice Cloning
Tacotron 2 - PyTorch implementation with faster-than-realtime inference modified to enable cross lingual voice cloning.
Stars: ✭ 106 (+0.95%)
Mutual labels:  jupyter-notebook
How To Generate Art Demo
This is the code for "How to Generate Art - Intro to Deep Learning #8' by Siraj Raval on YouTube
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Intro machine learning
Introduction to Machine Learning, a series of IPython Notebook and accompanying slideshow and video
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Simple adversarial examples
Repo of simple adversarial examples on vanilla neural networks trained on MNIST
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Deepai
Detection of Accounting Anomalies using Deep Autoencoder Neural Networks - A lab we prepared for NVIDIA's GPU Technology Conference 2018 that will walk you through the detection of accounting anomalies using deep autoencoder neural networks. The majority of the lab content is based on Jupyter Notebook, Python and PyTorch.
Stars: ✭ 104 (-0.95%)
Mutual labels:  jupyter-notebook
Intro To Deep Learning For Nlp
The repository contains code walkthroughs which introduces Deep Learning in the field of Natural Language Processing.
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Face Classification
Face model to classify gender and race. Trained on LFWA+ Dataset.
Stars: ✭ 104 (-0.95%)
Mutual labels:  jupyter-notebook
Makeittalk
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Openplan
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Anomaly Detection
Anomaly detection algorithm implementation in Python
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Tianchi Antaicup International E Commerce Artificial Intelligence Challenge
1st place solution for the AntaiCup-International-E-commerce-Artificial-Intelligence-Challenge
Stars: ✭ 104 (-0.95%)
Mutual labels:  jupyter-notebook
Time Series Forecasting With Python
A use-case focused tutorial for time series forecasting with python
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook
Openomni
Documentation and library for decoding omnipod communications.
Stars: ✭ 105 (+0%)
Mutual labels:  jupyter-notebook

Markov chain Monte Carlo with PyMC3

Chris Fonnesbeck

PyData London 2019 Tutorial

Binder

Bayesian methods are powerful tools for data science applications, complimenting traditional statistical and machine learning methods. Importantly, Bayesian models generate predictions and inferences that fully account for uncertainty. The main tool for conducting Bayesian analysis is Markov chain Monte Carlo (MCMC), a computationally-intensive numerical approach that allows a wide variety of models to be estimated. MCMC algorithms are available in several Python libraries, including PyMC3. I will teach users a practical, effective workflow for applying Bayesian statistics using MCMC via PyMC3 using real-world examples.

This tutorial is intended for analysts, data scientists and machine learning practitioners. Anyone looking for effective ways of making predictions and obtaining inference from datasets should find it useful. The material will assume an intermediate level of Python familiarity. Ideally, attendees should be familiar with Numpy and Jupyter. There is no expectation of students having a statistical background. Having completed the tutorial, students should be able to build basic Bayesian statistical models using their own data, validate those models, and interpret their output.

Outline

  1. Introduction to Bayes and PyMC3
    • What is a Baysian statistical model?
    • The Bayesian workflow in three steps
    • A high-level introduction to the PyMC3 API
    • Motivating examples
  2. Markov chain Monte Carlo
    • Why is Bayesian analysis hard?
    • If you can't calculate, simulate!
    • The Metropolis algorithm
    • A better way: Hamiltonian Monte Carlo
  3. Building and Fitting Models with PyMC3
    • Stochastic variables
    • Custom distributions
    • Deterministic variables
    • Factor potentials
    • MCMC sampling with step methods
  4. Model Checking and Diagnostics
    • Convergence diagnostics
    • Autocorrelation
    • Diagnostics for gradient-based samplers
    • Posterior predictive checks

Setup

This tutorial assumes that you have Anaconda (Python 3.7 version) setup and installed on your system.

The next step is to clone or download the tutorial materials in this repository. If you are familiar with Git, run the clone command:

git clone https://github.com/fonnesbeck/mcmc_pydata_london_2019.git

otherwise you can download a zip file of its contents, and unzip it on your computer.

The repository for this tutorial contains a file called environment.yml that includes a list of all the packages used for the tutorial. If you run:

conda env create

from the main tutorial directory, it will create the environment for you and install all of the packages listed. This environment can be enabled using:

conda activate mcmc_tutorial

Then, I recommend using JupyterLab to access the materials:

jupyter lab
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].