2ca285b61fb8280243a55b37d76297cd109328c8,chiron/chiron_eval_test.py,,,#,152

Before Change


    fig, ax1 = plt.subplots()
    ax2=ax1.twinx()
    x1=range(2000)
    x2=range(400)
    ax1.plot(x1,batch_x[INDEX,:],"black")
    for i in range(5):
        ax2.plot(x2,prob_val[INDEX,:,i],COLOR[i])        

After Change


    config.gpu_options.allow_growth = True
    saver = tf.train.Saver(var_list=tf.trainable_variables()+tf.moving_average_variables())
    sess = tf.train.MonitoredSession(session_creator=tf.train.ChiefSessionCreator(config=config))
    saver.restore(sess, tf.train.latest_checkpoint(FLAGS.model))
    if os.path.isdir(FLAGS.input):
        file_list = os.listdir(FLAGS.input)
        file_dir = FLAGS.input
    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: haotianteng/Chiron
Commit Name: 2ca285b61fb8280243a55b37d76297cd109328c8
Time: 2019-04-12
Author: havens.teng@gmail.com
File Name: chiron/chiron_eval_test.py
Class Name:
Method Name:


Project Name: deepchem/deepchem
Commit Name: 387e650e16a5405691fb18ce05b34bd90239180e
Time: 2020-01-31
Author: peastman@stanford.edu
File Name: deepchem/metalearning/tests/test_maml.py
Class Name: TestMAML
Method Name: test_sine


Project Name: tensorflow/minigo
Commit Name: 39a106e526e70b5d64bf9f5404311eb490df6ea5
Time: 2018-06-12
Author: tmadams@google.com
File Name: inference_worker.py
Class Name:
Method Name: main