Skip to content

Instantly share code, notes, and snippets.

View jpizarrom's full-sized avatar

Juan Pizarro jpizarrom

View GitHub Profile
@jpizarrom
jpizarrom / generate_df_lambda_package.sh
Created July 1, 2017 03:34 — forked from profjsb/generate_df_lambda_package.sh
Serverless Distributed Decision Forests with AWS Lambda
# build the environment ... this will take awhile
docker run -v $(pwd):/outputs -it amazonlinux:2016.09 /bin/bash /outputs/build.sh
# should end with something like "venv compressed size 51M"
# unpackage that environment
unzip venv.zip -d ve_package/
@jpizarrom
jpizarrom / bson2rec.py
Last active October 25, 2017 07:17
python bson2rec.py --num-thread 16 --quality 100 /mnt/batch/tasks/shared/data/train-all /mnt/batch/tasks/shared/data/train.bson
# coding: utf-8
# https://github.com/fchollet/keras/blob/master/tests/keras/utils/data_utils_test.py
# In[ ]:
import mxnet as mx
import os