Skip to content

Instantly share code, notes, and snippets.

View jdhooghe's full-sized avatar

Justin Dhooghe jdhooghe

View GitHub Profile
@jdhooghe
jdhooghe / StickBreaking.py
Last active February 26, 2018 08:39
Stick Breaking Example
import pymc3 as pm
import numpy as np
import matplotlib.pyplot as plt
from theano import shared
import theano.tensor as tt
import pandas as pd
x1 = np.linspace(0., 9.9, 10)
x2 = np.linspace(10., 30.9, 30)
x = np.concatenate((x1, x2), axis = 0)