Skip to content

Instantly share code, notes, and snippets.

Avatar

Tencia Lee tencia

View GitHub Profile
View lstm_sample.py
import lasagne as nn
import numpy as np
import theano
import theano.tensor as T
import math
from lasagne.utils import unroll_scan
from lasagne.layers import LSTMLayer
from lasagne.layers import Gate
from lasagne.layers import Layer
View moving_mnist.py
from PIL import Image
import sys
import os
import math
import numpy as np
###########################################################################################
# script to generate moving mnist video dataset (frame by frame) as described in
# [1] arXiv:1502.04681 - Unsupervised Learning of Video Representations Using LSTMs
# Srivastava et al
@tencia
tencia / vae_simple.py
Last active Feb 25, 2020
Variational Auto-Encoder using Lasagne
View vae_simple.py
import sys
import os
import numpy as np
import theano
import theano.tensor as T
import lasagne as nn
import time
from PIL import Image
from scipy.stats import norm
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams