View IAM On-line Gaussian Mixture Model with Recurrent Neural Network.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# VM for VuFind
# =============
#
# $ git clone git@github.com:vufind-org/vufind.git
# $ cd vufind
# $ vagrant up
#
View pyenv+virtualenv.md

Cheatsheet: pyenv, virtualenvwrapper, and pip

Installation (for Mac OS)

Install pyenv with brew

brew update
brew install pyenv
View Sierra.md
View bhattacharyya.py
import math
def bhattacharyya(a, b):
""" Bhattacharyya distance between distributions (lists of floats). """
if not len(a) == len(b):
raise ValueError("a and b must be of the same size")
return -math.log(sum((math.sqrt(u * w) for u, w in zip(a, b))))
View gist:5cb6bc5c75eb772c944f15faf1755948
#!/usr/bin/env bash
# mostly from http://word.bitly.com/post/31921713978/static-analysis
function cfmt {
if [[ $# -ne 1 ]]; then
echo "Usage: cfmt <file>"
else
astyle \
--style=1tbs \
--lineend=linux \
--convert-tabs \
View gist:ecc576a1bbd702eed037ccf108076141
model_G = nn.Sequential()
model_G:add(nn.JoinTable(2, 2))
model_G:add(cudnn.SpatialConvolutionUpsample(3+1, 64, 7, 7, 1, 1)):add(cudnn.ReLU(true))
model_G:add(nn.SpatialBatchNormalization(64, nil, nil, false))
model_G:add(cudnn.SpatialConvolutionUpsample(64, 368, 7, 7, 1, 4)):add(cudnn.ReLU(true))
model_G:add(nn.SpatialBatchNormalization(368, nil, nil, false))
model_G:add(nn.SpatialDropout(0.5))
model_G:add(cudnn.SpatialConvolutionUpsample(368, 128, 7, 7, 1, 4)):add(cudnn.ReLU(true))
model_G:add(nn.SpatialBatchNormalization(128, nil, nil, false))
model_G:add(nn.FeatureLPPooling(2,2,2,true))
View numpy_blas_time.py
# http://sharapov.com/2016/02/08/building-numpy-with-mkl/
import time
import numpy as np
A = np.random.rand(2000,2000)
B = np.random.rand(2000,2000)
print('Matrix multiplication')
time1 = time.time()
View zoom.scpt
#!/usr/bin/osascript
tell application "Microsoft Word"
activate
set percentage of zoom of view of active window to 100
end tell
View README.md

Do the whole thing:

PYTHONPATH='.' luigi --module small Small --local-scheduler