Skip to content

Instantly share code, notes, and snippets.

View tnbred's full-sized avatar

Thomas Bredillet tnbred

View GitHub Profile
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 60%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
@tnbred
tnbred / gist:867111b8e1e600fa588e
Last active August 29, 2015 14:05
Install spark 1.0.2 with updated guava version on EMR
#!/usr/bin/ruby
require 'json'
require 'emr/common'
require 'digest'
require 'socket'
def run(cmd)
if ! system(cmd) then
raise "Command failed: #{cmd}"
import argparse
import tensorflow as tf
import pandas as pd
import numpy as np
import xgboost as xgb
import json
from datetime import timedelta
from math import log, ceil
from sklearn.metrics import log_loss