Skip to content

Instantly share code, notes, and snippets.

View jakevdp's full-sized avatar

Jake Vanderplas jakevdp

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / LombScargleBenchmarks.ipynb
Created April 28, 2016 22:18
Lomb-Scargle Benchmarks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / Bootstrap.ipynb
Last active March 22, 2016 18:51
Simple example of a bootstrap computation of model errors
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.
@jakevdp
jakevdp / FremontBridge.ipynb
Created October 20, 2015 20:45
Fremont Bike Counts 2015
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / PublicLibraries.ipynb
Last active December 21, 2015 14:17
Map of Public Libraries in the Continental USA
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / bayes_factor.py
Created June 9, 2015 21:51
estimate Bayes factor
import numpy as np
from astroML import stats
def estimate_bayes_factor(traces, logp, r=0.05, return_list=False,
old_version=False, normalize_space=True):
"""Estimate the bayes factor using the local density of points"""
D, N = traces.shape
if normalize_space:
traces = traces.copy()
@jakevdp
jakevdp / make_error.py
Created February 24, 2015 00:52
Numba error
import mymodule
@jakevdp
jakevdp / kde.ipynb
Created January 8, 2015 00:01
Simple KDE example with scikit-learn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / CategoricalCMAP.ipynb
Last active February 14, 2024 18:00
Example of a categorical color map in matplotlib
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.