339e8d4d932305de2beff2bd9acd6742b1846ffa,tensorflowTUT/tf12_plot_result/for_you_to_practice.py,,,#,25

Before Change


loss = tf.reduce_mean(tf.reduce_sum(tf.square(ys-prediction), reduction_indices=[1]))
train_step = tf.train.GradientDescentOptimizer(0.1).minimize(loss)
// important step
init = tf.initialize_all_variables()
sess= tf.Session()
sess.run(init)

for i in range(1000):
    // training

After Change


sess= tf.Session()
// tf.initialize_all_variables() no long valid from
// 2017-03-02 if using tensorflow >= 0.12
sess.run(tf.global_variables_initializer())

for i in range(1000):
    // training
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 5

Instances


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf12_plot_result/for_you_to_practice.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf21_autoencoder/for_practicing.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf11_build_network/full_code.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf21_autoencoder/full_code.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf20_RNN2/full_code.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf12_plot_result/full_code.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf20_RNN2/for_you_to_practice.py
Class Name:
Method Name: