Skip to content

Instantly share code, notes, and snippets.

View twiecki's full-sized avatar

Thomas Wiecki twiecki

View GitHub Profile
@twiecki
twiecki / pydata12_zipline_twiecki.ipynb
Created October 27, 2012 03:33
IPython notebook used in my PyData NYC'12 presentation.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@twiecki
twiecki / sim_drift_gpu.py
Created December 9, 2011 16:23
Simulating drift-processes on the GPU using PyCuda
from __future__ import division
import pycuda.compiler
import pycuda.gpuarray as gpuarray
import pycuda.autoinit
import pycuda.curandom
from pycuda.cumath import exp as pycuda_exp
from pycuda.compiler import SourceModule
import matplotlib.pyplot as plt
from kabuki.utils import scipy_stochastic
@twiecki
twiecki / PyMC3 vs PyMC 4.0.ipynb
Created December 24, 2021 13:06
PyMC3 vs PyMC 4.0.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@twiecki
twiecki / GLM-hierarchical-jax.ipynb
Last active September 7, 2022 23:21
notebooks/GLM-hierarchical.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@twiecki
twiecki / Section4_2-Generative_Modeling.ipynb
Last active March 8, 2022 06:07
Generative-Modeling-rt-live.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@twiecki
twiecki / Section4_1-Bayesian_Workflow.ipynb
Created December 2, 2021 16:09
Bayesian_Workflow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@twiecki
twiecki / bayesian_neural_network.ipynb
Last active February 22, 2022 01:28
Bayesian Neural Network in PyMC3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@twiecki
twiecki / PyMC3 vs PyMC 4.0.ipynb
Last active January 6, 2022 16:01
PyMC3 vs PyMC 4.0.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
class ModelBuilder:
@classmethod
def load_default_config(cls):
# return dict of parameters
...
def __init__(self, data: pd.DataFrame, trait: str, config: Dict):
"""
Initialize the model builder.