Giter Site home page Giter Site logo

ymandcl / bayesian-workflow-with-pymc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from corriebar/bayesian-workflow-with-pymc

0.0 1.0 0.0 103.99 MB

Repository with code, notebook and slides for my talk at PyConDE & PyData Berlin 2019

Jupyter Notebook 99.60% Python 0.38% Makefile 0.02%

bayesian-workflow-with-pymc's Introduction

Bayesian Workflow with PyMC and ArviZ

Repository with code and notebook for my talk at PyConDE & PyData Berlin 2019.

The slides for the talk can be found here.

Setup

I'm using pipenv with Python 3.7 (the code might also work with other Python 3 versions but then you'll need to change the version in the Pipfile). To install pipenv, run

pip install pipenv

Then install the necessary packages, using

cd Bayesian-Workflow-with-PyMC
pipenv install

To activate the environment and start the notebooks from it, run

pipenv shell
python -m ipykernel install --user --name=$(basename $(pwd))
jupyter lab
# or jupyter notebook

Then, inside jupyter, pick the according kernel for the notebooks.

Preprocessing

To download the shapefiles and preprocess the data, run

make data

Data

The data used in the notebooks and for the talk is by Europace AG and not in the Repository. I instead included a data set of rental offers that I scraped from Immoscout24. A more detailed description of how I scraped the data etc can be found here. To use the rental data in the notebooks, you can change

d, zip_lookup, num_zip_codes = load_data(kind="prices")   

to

d, zip_lookup, num_zip_codes = load_data(kind="rents")

bayesian-workflow-with-pymc's People

Contributors

corriebar avatar

Watchers

James Cloos avatar

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.