5c80fb77ffcdf8718257166e5a5ec7601d0b0cd9,deepchem/models/tensorgraph/tensor_graph.py,TensorGraph,fit_generator,#TensorGraph#Any#Any#Any#Any#Any#,149
Before Change
if restore:
self.restore()
avg_loss, n_averaged_batches = 0.0, 0.0
coord = tf.train.Coordinator()
n_samples = 0
n_enqueued = [0]
final_sample = [None]
if self.use_queue:
After Change
if n_averaged_batches > 0:
avg_loss = float(avg_loss) / n_averaged_batches
if checkpoint_interval > 0:
if n_averaged_batches > 0:
print("Ending global_step %d: Average loss %g" % (self.global_step,
avg_loss))
saver.save(self.session, self.save_file, global_step=self.global_step)
time2 = time.time()
print("TIMING: model fitting took %0.3f s" % (time2 - time1))
return avg_loss
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: deepchem/deepchem
Commit Name: 5c80fb77ffcdf8718257166e5a5ec7601d0b0cd9
Time: 2017-09-27
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/tensor_graph.py
Class Name: TensorGraph
Method Name: fit_generator
Project Name: tensorlayer/tensorlayer
Commit Name: f2073333b710a340403843763ba60eb1e6699916
Time: 2019-04-11
Author: rundi_wu@pku.edu.cn
File Name: examples/data_process/tutorial_tfrecord2.py
Class Name:
Method Name:
Project Name: deepchem/deepchem
Commit Name: 1b7866b1aeea83478b86ddbc32fe887fee3a65c5
Time: 2017-09-26
Author: peter.eastman@gmail.com
File Name: deepchem/models/tensorgraph/tensor_graph.py
Class Name: TensorGraph
Method Name: fit_generator