Skip to content

Instantly share code, notes, and snippets.

View rhiever's full-sized avatar

Randy Olson rhiever

View GitHub Profile
@rhiever
rhiever / tpot-benchmark-stat-sig-diff-27-benchmarks.txt
Created June 16, 2016 20:23
List of pipelines optimized by TPOT v0.3 for the TPOT benchmarking paper to be presented at the ICML 2016 AutoML workshop
Dataset Pipeline
collins _random_forest(ARG0, 25, sub(62, 45))
collins _random_forest(ARG0, 36, 20)
collins _decision_tree(ARG0, 25, 81)
collins _decision_tree(ARG0, 16, 54)
collins _xgradient_boosting(ARG0, 0.01, 98, 36)
collins _xgradient_boosting(ARG0, 0.1, 32, 14)
collins _xgradient_boosting(ARG0, 1.0, 54, 39)
collins _decision_tree(ARG0, 94, 24)
collins _random_forest(ARG0, 100, 41)
@rhiever
rhiever / tpot-individual-creation.ipynb
Created April 19, 2016 19:13
How to create TPOT individuals
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from sklearn.datasets import load_digits
from sklearn.ensemble import RandomForestClassifier
from sklearn.cross_validation import train_test_split
from sklearn.metrics import recall_score
import numpy as np
import pandas as pd
digits = load_digits(10)
features, labels = digits['data'], digits['target']
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rhiever
rhiever / predict-gender-from-trivia-performance.ipynb
Created July 31, 2015 01:57
This notebook uses a random forest classifier to predict a player's gender based on their trivia question performance.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import urllib2
import time
import os
# Make a directory to store all of the HTML pages
os.system("mkdir pages")
# Download the raw HTML of all pages
for year in range(1982, 2015):
for week in range(1, 53):
# Author: Randal S. Olson (randalolson.com / @randal_olson)
# Uses Tableau's Tableau10 color scheme
figure.figsize: 12, 7
figure.edgecolor: white
figure.facecolor: white
lines.linewidth: 2.5
lines.markeredgewidth: 0
lines.markersize: 10
# Author: Randal S. Olson (randalolson.com / @randal_olson)
# Uses Tableau's Tableau20 color scheme
figure.figsize: 12, 7
figure.edgecolor: white
figure.facecolor: white
lines.linewidth: 2.5
lines.markeredgewidth: 0
lines.markersize: 10
@rhiever
rhiever / Quick and dirty web scraping with Python.ipynb
Created January 14, 2014 01:41
Quick and dirty web scraping with Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rhiever
rhiever / Plot average and SEM of multiple data files.ipynb
Created November 20, 2013 22:31
Plot average and SEM of multiple data files
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.