Skip to content

Instantly share code, notes, and snippets.

View ilanman's full-sized avatar

Ilan Man ilanman

  • Brooklyn Data Co.
  • New York
View GitHub Profile
@ilanman
ilanman / image_compression.ipynb
Last active November 24, 2015 00:13
Photobomb blog post
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ilanman
ilanman / Adaboost.ipynb
Last active March 13, 2016 19:34
This gist stores the code used for this blog post about Adaboost. https://ilanthedataman.squarespace.com/the-data-game/2015/10/29/wisdom-of-crowds
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ilanman
ilanman / GP.gif
Last active November 18, 2023 13:31
Gaussian Proccess
GP.gif
@ilanman
ilanman / 2d_boundary.png
Last active October 8, 2015 22:54
This gist is used in my post about the kernel trick. It uses 3d animation to show how the kernel trick can be used to increase dimensionality of a dataset in order to make it linearly separable. I used code from http://www.eric-kim.net/eric-kim-net/posts/1/kernel_trick.html as inspiration.
2d_boundary.png
@ilanman
ilanman / heatmap_both.gif
Last active September 25, 2015 18:54
This gist produces a heatmap of probability densities for every roll of a game of snakes and ladders. The densities are calculated using Markov Chains and the heatmaps are pieced together into a .gif file using the animation module from matplotlib.
heatmap_both.gif
@ilanman
ilanman / .gitignore
Last active January 16, 2020 10:19
Predicting NFL draft pick based on combine stats
*.csv
@ilanman
ilanman / box.js
Last active August 29, 2015 14:14
Box plots using d3 to visualize consistency NFL combine physical performances across time.
(function() {
// Inspired by http://informationandvisualization.de/blog/box-plot
d3.box = function() {
var width = 1,
height = 1,
duration = 0,
domain = null,
value = Number,
whiskers = boxWhiskers,
@ilanman
ilanman / _density_plot_gif.r
Last active August 29, 2015 14:12
Bike Share blog post
library(ggplot2)
library(scales)
library(reshape)
## Get the data from here: https://archive.ics.uci.edu/ml/machine-learning-databases/00275/
data <- read.csv('day.csv')
data$workingday <- as.factor(data$workingday)
data$weathersit <- as.factor(data$weathersit)
data$weekday <- as.factor(data$weekday)
@ilanman
ilanman / README.md
Last active January 16, 2020 10:18
Interactive ROC curve

This gist has the code to visually display the results of a binary classifier on tennis statistics, using an interactive ROC curve.

@ilanman
ilanman / README.md
Last active January 16, 2020 10:18
Choropleth of Medicare payments

This is a choropleth of Medicare payments by state, using the data recently released by the Center for Medicare and Medicaid Services. I used a kmeans algorithm to determine that 3 clusters explains roughly 90% of the variation in the data.