22425200b7220b2b410c9aa5ebc4c783f6cfe5df,lxmls/deep_learning/rnn.py,LSTM,__init__,#LSTM#,271
Before Change
def __init__(self, W_e, n_hidd, n_tags):
// Dimension of the embeddings
n_emb = W_e.shape[0]
// MODEL PARAMETERS
W_x = np.random.uniform(size=(4*n_hidd, n_emb)) // RNN Input layer
W_h = np.random.uniform(size=(4*n_hidd, n_hidd)) // RNN recurrent var
After Change
// MODEL PARAMETERS
if not seed:
np.random.seed(0)
else:
np.random.seed(seed)
// MODEL PARAMETERS
W_e = 0.01*np.random.uniform(size=(n_emb, n_words)) // Embedding layer
W_x = np.random.uniform(size=(4*n_hidd, n_emb)) // RNN Input layer
W_h = np.random.uniform(size=(4*n_hidd, n_hidd)) // RNN recurrent var
W_c = np.random.uniform(size=(3*n_hidd, n_hidd)) // Second recurrent var
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: LxMLS/lxmls-toolkit
Commit Name: 22425200b7220b2b410c9aa5ebc4c783f6cfe5df
Time: 2016-06-21
Author: ramon@astudillo.com
File Name: lxmls/deep_learning/rnn.py
Class Name: LSTM
Method Name: __init__
Project Name: LxMLS/lxmls-toolkit
Commit Name: 22425200b7220b2b410c9aa5ebc4c783f6cfe5df
Time: 2016-06-21
Author: ramon@astudillo.com
File Name: lxmls/deep_learning/rnn.py
Class Name: LSTM
Method Name: __init__
Project Name: tomgoldstein/loss-landscape
Commit Name: 749438fd8b7ffc29e78d042473cb00fda595d937
Time: 2018-12-27
Author: tomg@cs.umd.edu
File Name: dataloader.py
Class Name:
Method Name: load_dataset
Project Name: luispedro/mahotas
Commit Name: 93663c2cc8c0c8bc3c6f28c27679707305948c80
Time: 2010-05-11
Author: lpc@cmu.edu
File Name: tests/test_texture.py
Class Name:
Method Name: test_cooccurence