ccbaf353bcd6121c50b4de0965177480b8f6eb48,adding_problem_100/rwa_model/train.py,,,#,25

Before Change



	q_greater = tf.maximum(q, 0.0)	// Greater of the exponent term or zero
	scale = tf.exp(-q_greater)
	a_scale = tf.exp(q-q_greater)

	n = tf.mul(n, scale)+tf.mul(tf.mul(u, tf.nn.tanh(g)), a_scale)	// Numerically stable update of numerator
	d = tf.mul(d, scale)+a_scale	// Numerically stable update of denominator
	h_new = activation(tf.div(n, d))

After Change



// Define model
//
error = tf.zeros([batch_size])
h += activation(tf.expand_dims(s, 0))

for i in range(max_steps):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


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


Project Name: commonsense/conceptnet5
Commit Name: cbe2758007e312c168aef30328693027b6a4b7e9
Time: 2018-06-06
Author: rbeaudoin@luminoso.com
File Name: conceptnet5/vectors/debias.py
Class Name:
Method Name: de_bias_category


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


Project Name: commonsense/conceptnet5
Commit Name: cbe2758007e312c168aef30328693027b6a4b7e9
Time: 2018-06-06
Author: rbeaudoin@luminoso.com
File Name: conceptnet5/vectors/debias.py
Class Name:
Method Name: de_bias_binary