Skip to content

Instantly share code, notes, and snippets.

View AustinRochford's full-sized avatar

Austin Rochford AustinRochford

View GitHub Profile
@AustinRochford
AustinRochford / lda_advi.ipynb
Last active September 18, 2016 21:57
PyMC3 ADVI Latend Dirichlet Allocation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AustinRochford
AustinRochford / dirichlet_process_pym3.ipynb
Created April 7, 2016 12:34
Dirichlet Process Notebook from Alex Reiner
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AustinRochford
AustinRochford / dependent_density_regression.ipynb
Last active January 19, 2017 01:03
Dependent Density Regression with PyMC3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AustinRochford
AustinRochford / hypothesis_dist_tests.ipynb
Last active January 28, 2017 17:30
Hypothesis Distribution Tests Prototyping
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AustinRochford
AustinRochford / blog_markdown.tpl
Last active July 9, 2017 15:49
The template I use to convert IPython notebooks to markdown for my blog.
{% extends 'display_priority.tpl' %}
{% block in_prompt %}
{% endblock in_prompt %}
{% block output_prompt %}
{%- endblock output_prompt %}
{% block input %}
@AustinRochford
AustinRochford / Density Estimation with Dirichlet Process Mixtures using PyMC3.ipynb
Last active July 14, 2017 12:53
Density Estimation with Dirichlet Process Mixtures using PyMC3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AustinRochford
AustinRochford / gist:92b06d174a7f84fded6e
Created March 4, 2015 02:39
Maximum Likelihood Estimation in Python with StatsModels
{"nbformat_minor": 0, "cells": [{"execution_count": 1, "cell_type": "code", "source": "%matplotlib inline", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"source": "---\ntitle: Maximum Likelihood Estimation of Custom Models in Python with StatsModels\ntags: Statistics, Python\n---", "cell_type": "markdown", "metadata": {}}, {"source": "Maximum likelihood estimation is a common method for fitting statistical models. In Python, it is quite possible to fit maximum likelihood models using just [`scipy.optimize`](http://docs.scipy.org/doc/scipy/reference/optimize.html). Over time, however, I have come to prefer the convenience provided by [`statsmodels`'](http://statsmodels.sourceforge.net/) [`GenericLikelihoodModel`](http://statsmodels.sourceforge.net/devel/dev/generated/statsmodels.base.model.GenericLikelihoodModel.html). In this post, I will show how easy it is to subclass `GenericLikelihoodModel` and take advantage of much of `statsmodels`' well-developed machinery for maximum likelihood
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AustinRochford
AustinRochford / howtomagic.ipynb
Last active August 15, 2017 21:33
How to Write a Jupyter Magic
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.