This file contains hidden or 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
| """ Theano CRBM implementation. | |
| For details, see: | |
| http://www.uoguelph.ca/~gwtaylor/publications/nips2006mhmublv | |
| Sample data: | |
| http://www.uoguelph.ca/~gwtaylor/publications/nips2006mhmublv/motion.mat | |
| @author Graham Taylor""" | |
| import numpy |
This file contains hidden or 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
| """ | |
| bitmap utils and much of the ctc code modified | |
| From Shawn Tan, Rakesh and Mohammad Pezeshki | |
| """ | |
| # Author: Kyle Kastner | |
| # License: BSD 3-clause | |
| from theano import tensor | |
| from scipy import linalg | |
| import theano | |
| import numpy as np |
This file contains hidden or 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
| import numpy as np | |
| import theano | |
| import theano.tensor as T | |
| from theano.tensor.nnet import sigmoid | |
| from utils import gloro_init, zeros_init | |
| # x: B, T, F | |
| def lstm(x, idim, hdim, odim, batch_size, name): | |
| # W_i, W_f, W_c, W_o |