41477b40840a64e8c8cd606f6e04de929f390f55,deepchem/models/tensorflow_models/__init__.py,TensorflowGraph,fit,#TensorflowGraph#Any#Any#Any#,212

Before Change


      assert model_ops.is_training()
      self.require_attributes(["loss", "global_step", "updates"])
      train_op = self.get_training_op()
      no_op = tf.no_op()
      tf.train.write_graph(
          tf.get_default_graph().as_graph_def(), self.logdir, "train.pbtxt")
      with self._get_shared_session() as sess:
        sess.run(tf.initialize_all_variables())

After Change


        saver.save(sess, self._save_path, global_step=0)
        for epoch in range(nb_epoch):
          //////////////////// DEBUG
          y_bs, y_preds = [], []
          //////////////////// DEBUG
          for (X_b, y_b, w_b, ids_b) in dataset.iterbatches(batch_size):
            // Run training op and compute summaries.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepchem/deepchem
Commit Name: 41477b40840a64e8c8cd606f6e04de929f390f55
Time: 2016-05-03
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tensorflow_models/__init__.py
Class Name: TensorflowGraph
Method Name: fit


Project Name: ray-project/ray
Commit Name: 83e06cd30a45245c2cb0e9f4bd924224b1581554
Time: 2020-03-01
Author: sven@anyscale.io
File Name: rllib/agents/ddpg/ddpg_policy.py
Class Name: DDPGTFPolicy
Method Name: __init__


Project Name: galeone/dynamic-training-bench
Commit Name: eaad03cd8e49a57b425bfc01fa87d8da641655f6
Time: 2016-10-23
Author: nessuno@nerdz.eu
File Name: vgg.py
Class Name:
Method Name: train