Skip to content

Instantly share code, notes, and snippets.

@kastnerkyle
kastnerkyle / optimizers.py
Last active January 12, 2021 13:46
Theano optimizers
# Authors: Kyle Kastner
# License: BSD 3-clause
import theano.tensor as T
import numpy as np
import theano
class rmsprop(object):
"""
RMSProp with nesterov momentum and gradient rescaling
@albertz
albertz / TaskSystem.py
Last active September 24, 2019 15:31
Multiprocessing with real subprocess (fork+exec), not just fork
"""
Here are all subprocess, threading etc related utilities,
most of them quite low level.
"""
from threading import Lock, currentThread
import sys
import os
from StringIO import StringIO