Skip to content

Instantly share code, notes, and snippets.

@vpj
vpj / keras_distributed.py
Last active Jan 6, 2020
Distributed learning for keras models with tensorflow
View keras_distributed.py
'''
The code is inspired from François Chollet's answer to the following quora question[1] and distributed tensorflow tutorial[2].
It runs the Keras MNIST mlp example across multiple servers.
This sample code runs multiple processes on a single host. It can be configured
to run on multiple hosts simply by chaning the host names given in *ClusterSpec*.
Training the model:
@vpj
vpj / setup.sh
Created Apr 11, 2015
Linux setup
View setup.sh
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install terminator
sudo apt-get install g++ build-essential vim make
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install zsh
chsh -s /bin/zsh
sudo apt-get install indicator-multiload
sudo ln -s /usr/bin/nodejs /usr/bin/node
@vpj
vpj / vimrc
Created Oct 17, 2014
Programming setup
View vimrc
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
set cursorcolumn
set ai nu bg=dark ts=1 sw=1 expandtab fdm=indent
set mouse=a
set hlsearch
colorscheme vividchalk
set cursorline
@vpj
vpj / README.md
Last active Aug 29, 2015
TopLeft vs webkitTransform
View README.md

TopLeft vs webkitTransform

@vpj
vpj / README.md
Last active Aug 29, 2015 — forked from mbostock/.block
Weya.coffee: Grouped Bar Chart
View README.md
@vpj
vpj / README.md
Last active Jan 1, 2016 — forked from mbostock/.block
fp.js: Grouped Bar Chart