Skip to content

Instantly share code, notes, and snippets.

View tsbertalan's full-sized avatar

Tom Bertalan tsbertalan

  • University of Massachusetts Lowell
  • United States
View GitHub Profile
@tsbertalan
tsbertalan / qsub.py
Created October 25, 2013 18:44 — forked from astrofrog/qsub.py
import os
import random
import string
import tempfile
import subprocess
def random_id(length=8):
return ''.join(random.sample(string.ascii_letters + string.digits, length))
TEMPLATE_SERIAL = """
@tsbertalan
tsbertalan / bpnn.py
Created August 7, 2012 18:30 — forked from raphaelsaunier/bnpnn.py
Back-Propagation Neural Networks by Neil Schemenauer <nas@arctrix.com>
# 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.