Skip to content

Instantly share code, notes, and snippets.

View potatochip's full-sized avatar

Aaron Mangum potatochip

  • San Francisco, CA
View GitHub Profile
@potatochip
potatochip / mpl_cfaces.py
Created February 4, 2016 21:03 — forked from aflaxman/mpl_cfaces.py
Chernoff Faces in Python with Matplotlib
from pylab import *
def cface(ax, x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18):
# x1 = height of upper face
# x2 = overlap of lower face
# x3 = half of vertical size of face
# x4 = width of upper face
# x5 = width of lower face
# x6 = length of nose
# x7 = vertical position of mouth
@potatochip
potatochip / Blank_US_Map.svg
Last active September 1, 2015 20:05
ashley_madison_kinks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@potatochip
potatochip / index.html
Created August 6, 2015 22:14
syrian_cod_for_blog
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: auto;
position: fixed;
width: 700px;
}
@potatochip
potatochip / index.html
Last active August 29, 2015 14:26
syrian_war_cause_of_death
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: auto;
position: relative;
width: 760px;
}
@potatochip
potatochip / average_violations.js
Last active August 29, 2015 14:25
Boston Restaurant Violations Map
var violation_json = {
"type": "FeatureCollection",
"features": [
{"Allston 2007":{"level_1":4.141509434,"level_2":0.4716981132,"level_3":1.4056603774},"Allston 2008":{"level_1":4.3289473684,"level_2":0.3881578947,"level_3":0.4210526316},"Allston 2009":{"level_1":4.0540540541,"level_2":0.3040540541,"level_3":0.4256756757},"Allston 2010":{"level_1":3.1071428571,"level_2":0.2678571429,"level_3":1.3303571429},"Allston 2011":{"level_1":1.7419354839,"level_2":0.0967741935,"level_3":0.6021505376},"Allston 2012":{"level_1":3.1480263158,"level_2":0.4309210526,"level_3":0.7730263158},"Allston 2013":{"level_1":3.60591133,"level_2":0.3251231527,"level_3":1.0344827586},"Allston 2014":{"level_1":2.9539473684,"level_2":0.3881578947,"level_3":1.4605263158},"Allston 2015":{"level_1":2.8611111111,"level_2":0.5277777778,"level_3":0.8333333333},"Back Bay 2007":{"level_1":5.6019417476,"level_2":0.3689320388,"level_3":1.1941747573},"Back Bay 2008":{"level_1":3.1462522852,"level_2":0.2797074954,"level_3":1.4588665448},"Back Bay 2
@potatochip
potatochip / all_four_data.tsv
Last active August 29, 2015 14:21
Estimator Heatmap
We can't make this file beautiful and searchable because it's too large.
Feature Estimator Accuracy Sample
AgeAnginaBpCholesterolDepressionEcgHrPainSexSlopeSugarThalVessels linear 0.4757954732528258 299
AgeAnginaBpCholesterolDepressionEcgHrPainSexSlopeSugarThalVessels knn 0.8360919540229885 299
AgeAnginaBpCholesterolDepressionEcgHrPainSexSlopeSugarThalVessels logistic 0.8328735632183909 299
AgeAnginaBpCholesterolDepressionEcgHrPainSexSlopeSugarThalVessels gaussian 0.8428735632183908 299
AgeAnginaBpCholesterolDepressionEcgHrPainSexSlopeSugarThalVessels svc 0.8294252873563218 299
AgeAnginaBpCholesterolDepressionEcgHrPainSexSlopeSugarThalVessels tree 0.7559770114942529 299
AgeAnginaBpCholesterolDepressionEcgHrPainSexSlopeSugarThalVessels forest 0.8026436781609195 299
AgePainSex linear -0.5714016735157516 920
AgePainSex knn 0.7367844170789472 920