Skip to content

Instantly share code, notes, and snippets.

@chrisdubois
chrisdubois / submission.py
Created March 23, 2015 17:19
Starter code for Otto Group Product Classification
import graphlab as gl
import math
import random
train = gl.SFrame.read_csv('data/train.csv')
test = gl.SFrame.read_csv('data/test.csv')
del train['id']
def make_submission(m, test, filename):
preds = m.predict_topk(test, output_type='probability', k=9)
@chrisdubois
chrisdubois / analyzing_airlines_data_w_glc
Created October 22, 2014 23:29
Comparing dplyr, pandas, and GraphLab Create syntax for analyzing airlines data
{
"metadata": {
"name": "",
"signature": "sha256:02c98fadc77e55f0faa88d532e41a3db7cf49c59dd9a18e0c952b36bd96767c4"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [