Skip to content

Instantly share code, notes, and snippets.

@vpj
vpj / keras_distributed.py
Last active August 1, 2023 19:41
Distributed learning for keras models with tensorflow
'''
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 April 11, 2015 12:11
Linux setup
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 October 17, 2014 08:30
Programming setup
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 August 29, 2015 14:01
TopLeft vs webkitTransform

TopLeft vs webkitTransform

@vpj
vpj / README.md
Last active August 29, 2015 13:57 — forked from mbostock/.block
Weya.coffee: Grouped Bar Chart
@vpj
vpj / README.md
Last active January 1, 2016 16:09 — forked from mbostock/.block
fp.js: Grouped Bar Chart