This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install watchdog -U | |
# now there is a command called "watchmedo", you'll like it... | |
# in terminal #1, run: | |
gunicorn app:myapp --pid=gunicorn.pid | |
# in terminal #2, run: | |
watchmedo shell-command \ | |
--patterns="*.py;*.html;*.css;*.js" \ | |
--recursive \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Back-Propagation Neural Networks | |
# | |
# Written in Python. See http://www.python.org/ | |
# Placed in the public domain. | |
# Neil Schemenauer <nas@arctrix.com> | |
# | |
# Changes: | |
# 2009-01-30 Fix dsigmoid() to use correct derivative rather than an | |
# approximation. Suggested by Andrew Lionel Blais. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns nn) | |
(defstruct network :ai :ah :ao :wi :wo :ci :co) | |
(defn rand-in-range [a b] | |
(+ (* (- b a) (rand)) a)) | |
(defn make-matrix | |
([i j] (make-matrix i j 0.0)) | |
([i j fill] (repeat i (repeat j fill)))) |