Skip to content

Instantly share code, notes, and snippets.

View jonathan-taylor's full-sized avatar

Jonathan Taylor jonathan-taylor

View GitHub Profile
@jonathan-taylor
jonathan-taylor / execute_and_save.py
Created June 8, 2012 08:09
A script to load an .ipynb file, execute all cells in order and output the resulting notebook. Depends on https://github.com/jonathan-taylor/nbconvert/tree/json2json
"""
simple example script for running notebooks and saving the resulting notebook.
Usage: `execute_and_save.py foo.ipynb [bar.ipynb [...]]`
Each cell is submitted to the kernel, and the outputs are overwritten and
stored in new notebooks foo_executed.ipynb, etc.
"""
import os,sys,time
@jonathan-taylor
jonathan-taylor / randomized_selective_bootstrap.ipynb
Last active November 4, 2015 00:52
A randomized selective bootstrap
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathan-taylor
jonathan-taylor / jsm2015.ipynb
Last active August 29, 2015 14:27
JSM 2015 talk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathan-taylor
jonathan-taylor / cross_valid.py
Last active October 1, 2015 00:08
selective inference after cross validation
"""
Script to implement selective inference after cross-validation
"""
import numpy as np
from scipy.stats import norm as ndist
from statsmodels.distributions import ECDF
@jonathan-taylor
jonathan-taylor / cross_validate.ipynb
Created August 14, 2015 18:02
selective inference after cross validation -- results
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathan-taylor
jonathan-taylor / randomized_FS.ipynb
Last active August 29, 2015 14:27
randomized first step of FS -- inference in saturated model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathan-taylor
jonathan-taylor / two_conditional_tests.ipynb
Last active September 3, 2015 04:53
Which conditional test should I use?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathan-taylor
jonathan-taylor / jump_langevin.ipynb
Created September 24, 2015 02:48
Langevin stochastic gradient
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathan-taylor
jonathan-taylor / columbia2015.ipynb
Created October 11, 2015 23:27
Columbia 2015 talk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathan-taylor
jonathan-taylor / CV_variability.ipynb
Created October 20, 2015 22:33
variability of active set in cross validation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.