200d1ccf8a79c370d21a42bb0e2cb7439576956e,mnist/rwa_model/score.py,,,#,24

Before Change


		maxval=np.sqrt(6.0*initialization_factor/(num_features+2.0*num_cells))
	)
)
b_a = tf.Variable(tf.zeros([num_cells]))

W_o = tf.Variable(
	tf.random_uniform(
		[num_cells, num_classes],
		minval=-np.sqrt(6.0*initialization_factor/(num_cells+num_classes)),
		maxval=np.sqrt(6.0*initialization_factor/(num_cells+num_classes))
	)
)
b_o = tf.Variable(tf.zeros([num_classes]))

// Internal states
//
n = tf.zeros([batch_size, num_cells])
d = tf.zeros([batch_size, num_cells])
h = tf.zeros([batch_size, num_cells])
a_max = tf.fill([batch_size, num_cells], -1E38)	// Start off with lowest number possible

// Define model
//
h += activation(tf.expand_dims(s, 0))

for i in range(max_steps):

	x_step = x[:,i,:]
	xh_join = tf.concat(1, [x_step, h])	// Combine the features and hidden state into one tensor

	u = tf.matmul(x_step, W_u)+b_u
	g = tf.matmul(xh_join, W_g)+b_g
	a = tf.matmul(xh_join, W_a)+b_a

	z = tf.mul(u, tf.nn.tanh(g))

	a_newmax = tf.maximum(a_max, a)

After Change



	u = tf.matmul(x_step, W_u)+b_u
	g = tf.matmul(xh_join, W_g)+b_g
	a = tf.matmul(xh_join, W_a)

	z = tf.mul(u, tf.nn.tanh(g))

	a_newmax = tf.maximum(a_max, a)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 11

Non-data size: 7

Instances


Project Name: jostmey/rwa
Commit Name: 200d1ccf8a79c370d21a42bb0e2cb7439576956e
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: mnist/rwa_model/score.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: baea9134fa7370fdf3338173b02f8b1ccdbd23f1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: mnist/rwa_model/train.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: baea9134fa7370fdf3338173b02f8b1ccdbd23f1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: mnist_permuted/rwa_model/train.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: 5321ff7dbc8717b90643e2c7082bcdd31be028b1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: mnist_permuted/rwa_model/score.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: baea9134fa7370fdf3338173b02f8b1ccdbd23f1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: length_problem_1000/rwa_model/train.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: baea9134fa7370fdf3338173b02f8b1ccdbd23f1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: adding_problem_1000/rwa_model/train.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: baea9134fa7370fdf3338173b02f8b1ccdbd23f1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: copy_problem_1000/rwa_model/train.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: baea9134fa7370fdf3338173b02f8b1ccdbd23f1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: copy_problem_100/rwa_model/train.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: baea9134fa7370fdf3338173b02f8b1ccdbd23f1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: reber_grammar/rwa_model/train.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: baea9134fa7370fdf3338173b02f8b1ccdbd23f1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: length_problem_100/rwa_model/train.py
Class Name:
Method Name:


Project Name: jostmey/rwa
Commit Name: baea9134fa7370fdf3338173b02f8b1ccdbd23f1
Time: 2017-03-13
Author: jostmey@gmail.com
File Name: adding_problem_100/rwa_model/train.py
Class Name:
Method Name: