Skip to content

Instantly share code, notes, and snippets.

@rcompton
rcompton / install-tensorflow.sh
Last active June 8, 2016 17:32 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
@rcompton
rcompton / gist:67bb614b86297c970451
Last active April 29, 2016 18:20
Bokeh confusion matrix plot bug
#cf https://groups.google.com/a/continuum.io/forum/#!msg/bokeh/rvFcJV5_WQ8/Pf5hsF9mCAAJ
from collections import OrderedDict
import numpy as np
from bokeh.plotting import figure, show, output_file
from bokeh.models import HoverTool, ColumnDataSource
N = 20