Skip to content

Instantly share code, notes, and snippets.

View grapefroot's full-sized avatar
😰
Working from home

Dmitry Salnikov grapefroot

😰
Working from home
View GitHub Profile
// Copy paste this script on your console
var disabled = false;
var r = confirm('Start the Autolike on this page?');
var min_time_to_decide = 300;
var max_additional_time_to_decide = 1000;
var time_to_decide = function() {
additional_time_to_decide = Math.floor(Math.random() * max_additional_time_to_decide);
return min_time_to_decide + additional_time_to_decide;
@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)