Skip to content

Instantly share code, notes, and snippets.

View ynd's full-sized avatar

Yann N. Dauphin ynd

View GitHub Profile
@ynd
ynd / equi.py
Last active November 17, 2022 09:41
import numpy
import theano
from theano import tensor as T
from theano.sandbox import rng_mrg
class EquiSGD(object):
"""Equilibrated SGD (eSGD).
Parameters
@ynd
ynd / rbm.py
Created October 5, 2012 22:09
Benchmark: Some fairly clean (and fast) code for Restricted Boltzmann machines.
"""
Code for training RBMs with contrastive divergence. Tries to be as
quick and memory-efficient as possible while utilizing only pure Python
and NumPy.
"""
# Copyright (c) 2009, David Warde-Farley
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without