Skip to content

Instantly share code, notes, and snippets.

@drivendata
drivendata / functions_to_keep_it_fresh.R
Created May 28, 2015 15:18
functions_to_keep_it_fresh.R
# INSTALL JSON PACKAGE IF NEEDED
#install.packages("jsonlite")
library("jsonlite")
# ===== FUNCTIONS FOR ID MATCHING ============
getReverseIds <- function(pathToRestaurantIdsCSV){
# load the id map from the csv
bosToYelp <- read.csv(pathToRestaurantIdsCSV, na.strings="")
# for storing the inverse mapping
@drivendata
drivendata / fog-water.geojson
Created March 1, 2016 02:54
Locations in DrivenData's Fog Water Competition
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from __future__ import print_function
from six import iteritems
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as pl
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from itertools import cycle
import numpy as np
import os
import pandas as pd
import skvideo.io as skv
from warnings import filterwarnings
filterwarnings('ignore')
from multilabel import multilabel_train_test_split