Skip to content

Instantly share code, notes, and snippets.

View easadler's full-sized avatar

Evan Sadler easadler

View GitHub Profile
@easadler
easadler / README.md
Last active November 21, 2015 00:14
Animated Circles

Randomly generates circles that change position and size.

@easadler
easadler / README.md
Last active November 21, 2015 00:43
Pronto Visualized

This is a vizualization of hourly bike availability for Seattle's Pronto! ride-sharing service for the month of July 2015.

  • The size of the circles represents the number of bikes at the station
  • The color represents how full the station is where red is empty, green is 50%, and bull is 100%
@easadler
easadler / .DS_Store
Last active November 21, 2015 00:49
Mandelbrot Set
@easadler
easadler / README.md
Last active November 21, 2015 18:19
Interactive Linear Regression

Click on the graph to draw points. A line of best fit will dynamically update to the new data points.

@easadler
easadler / README.md
Last active November 23, 2015 07:16
Cash for Clunkers Choropleth

Summary statistics from the cash for clunkers dataset by state.

Please note:

  • Average gallons saved and average gallons saved per car are yearly estimates.
  • I used the average miles driven per year (13,476 miles), the trade in car's mpg, and the new car's mpg to find an estimate gallons saved for each participant.
@easadler
easadler / README.md
Last active December 24, 2015 18:20
Class: perform column-wise hierarchical clustering

Class: Column-Wise Hierarchical Clustering

I created this class because of feedback from Dr. Alexander on my first project at Galvanize. He suggested hierarchical clustering on the columns to reduce the large feature space into hopefully interpretable combinations.

Getting started is very simple:

from columnwiseclustering import CWHC
X = df.values
names = df.columns
@easadler
easadler / README.md
Last active January 3, 2016 22:43
Letter Frequency

Uses react and d3 to plot the letter fequency of a sentance as it is typed. React and D3 integration based on this blog post by Nicolas Hery and letter frequency chart based on this example by Mike Bostock.

@easadler
easadler / README.md
Last active January 26, 2016 05:45
Cash for Clunkers Chord

Shows the car exchanges in the Cash for Clunkers program aggregated by automaker nationality.

Click here to see how I transformed the data.

Source of data

@easadler
easadler / README.md
Last active January 26, 2016 05:45
Class: EDA & feature engineering using PCA

Class: Dimension Reduction Plot Components (DRPC)

I created this class to quickly implement versions of PCA and develope intuition through plotting and examining the principle componenents. The syntax follows scikit learn's philosophy, with a few modifications to improve the work flow for the specific uses of this class.

Getting started is very simple:

from reducedimensions import DRPC
X = df.values
names = df.columns
@easadler
easadler / .block
Last active November 7, 2016 20:50
D3 Rave Part 2
license: mit