Skip to content

Instantly share code, notes, and snippets.

@ashenfad
ashenfad / README.md
Last active June 29, 2017 01:58
t-SNE Layout of Forest Cover Clusters
@ashenfad
ashenfad / README.md
Last active June 29, 2017 01:56
t-SNE Layout of Titanic Clusters

A t-SNE inspired visualization of a BigML G-means clustering built from the Titanic dataset. Mouse over a cluster to see the centroid.

@ashenfad
ashenfad / README.md
Created June 29, 2017 01:51
t-SNE Layout of Diabetes Clusters
@ashenfad
ashenfad / README.md
Last active March 31, 2017 01:07
Congressional District Gerrymandering Grades

Grades for each state (and district) based on how badly the district shapes seem gerrymandered.

Click on a state to see the individual district grades. Click on any district to return to the state view. Click and drag to pan, and scroll to zoom.

To compute a district's gerrymandering score I use the ratio of a district's area over the area of its convex hull. A district is only

@ashenfad
ashenfad / README.md
Last active February 27, 2017 23:59
Iris - Boosting PDP

A partial dependence plot of a BigML boosted ensemble built on the iris dataset.

  • Click and drag to zoom in.
  • Double click to zoom out.
@ashenfad
ashenfad / README.md
Last active October 19, 2016 20:51
Example Approximate Histogram Viz

A visualization of a distribution encoded by a streaming approximate histogram.

  • Brush to zoom.
  • Click to zoom out.
  • t to toggle trimming some of the outliers from the distribution.
  • r to toggle rounding populations for each bin.
  • i to toggle the distribution interpolation mode.
@ashenfad
ashenfad / titanic.csv
Created July 11, 2013 21:14
Titanic Survival Data
Name Age Class/Dept Fare Joined Job Survived
ALLEN, Miss Elisabeth Walton 29 1st Class 16,300 Southampton TRUE
ALLISON, Master Hudson Trevor 0.9 1st Class 11,700 Southampton TRUE
ALLISON, Miss Helen Loraine 2 1st Class 11,700 Southampton FALSE
ALLISON, Mr Hudson Joshua Creighton 30 1st Class 11,700 Southampton Businessman FALSE
ALLISON, Mrs Bessie Waldo 25 1st Class 11,700 Southampton FALSE
ANDERSON, Mr Harry 47 1st Class 2,050 Southampton Stockbroker TRUE
ANDREWS, Miss Kornelia Theodosia 62 1st Class 6,020 Cherbourg TRUE
ANDREWS, Mr Thomas 39 1st Class Belfast Shipbuilder FALSE
APPLETON, Mrs Charlotte 53 1st Class 3,980 Southampton TRUE
@ashenfad
ashenfad / README.md
Last active July 20, 2016 22:08
t-SNE Layout of LDA Topics

A t-SNE inspired visualization of a BigML LDA model built from a subset of the UCI OpinRank dataset. Mouse over a topic to see the most influential terms.

@ashenfad
ashenfad / README.md
Last active July 20, 2016 22:07
t-SNE Layout of LDA Topics (ver 2)

A t-SNE inspired visualization of a BigML LDA model built from a subset of the UCI OpinRank dataset. Mouse over a topic to see the most influential terms.

@ashenfad
ashenfad / merge-with.whizzml
Last active July 7, 2016 17:22
A WhizzML version of Clojure's merge-with
(define (merge-with* fn m1 m2)
(reduce (lambda (result key)
(let (v1 (get m1 key)
v2 (get m2 key))
(assoc result key (if (and v1 v2)
(fn v1 v2)
(or v1 v2)))))
{}
(concat (keys m1) (keys m2))))