Code for Keras plays catch blog post
python qlearn.py
python test.py
import numpy as np | |
#from matplotlib import pyplot as plt | |
from scipy.optimize import fmin_l_bfgs_b as bfgs,check_grad,fmin_bfgs,fmin_tnc | |
from scipy.io import loadmat | |
import cPickle | |
class params: | |
''' |
#!/usr/bin/env bash | |
# | |
# Fix virtualenv symlinks after upgrading python with Homebrew and then running | |
# `cleanup`. | |
# | |
# After upgrading Python using Homebrew and then running `brew cleanup` one can | |
# get this message while trying to run python: | |
# dyld: Library not loaded: @executable_path/../.Python | |
# Referenced from: /Users/pablo/.venv/my-app/bin/python | |
# Reason: image not found |
on alfred_script(q) | |
set theYear to year of (current date) as string | |
set theMonth to (month of (current date) as number) | |
if theMonth < 10 then | |
set theMonth to "0" & theMonth | |
else | |
set theMonth to "" & theMonth | |
end if |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
Code for Keras plays catch blog post
python qlearn.py
python test.py
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
# (C) Mathieu Blondel, November 2013 | |
# License: BSD 3 clause | |
import numpy as np | |
from scipy.linalg import svd | |
def frequent_directions(A, ell, verbose=False): | |
""" | |
Return the sketch of matrix A. |
#readOverlay { | |
display: block; | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
} | |
#readInner { | |
text-align: left; | |
line-height: 1.4em; |