c3a6d11e727277100b3b9a66b823b496fa3b9901,examples/atari_dqn.py,ConvNet,train_on_batch,#ConvNet#Any#Any#,168

Before Change


            return self.all_q.predict(x, **fit_params)

    def train_on_batch(self, x, y, **fit_params):
        self.q.train_on_batch(x, y, **fit_params)

    def set_weights(self, w):
        self.q.set_weights(w)

After Change


            return self.all_q.predict(x, **fit_params)

    def train_on_batch(self, x, y, **fit_params):
        loss = self.q.train_on_batch(x, y, **fit_params)
        summary = tf.Summary(value=[tf.Summary.Value(tag="loss",
                                                     simple_value=loss), ])
        self.writer.add_summary(summary)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: c3a6d11e727277100b3b9a66b823b496fa3b9901
Time: 2017-08-11
Author: boris.ilpossente@hotmail.it
File Name: examples/atari_dqn.py
Class Name: ConvNet
Method Name: train_on_batch


Project Name: deepchem/deepchem
Commit Name: 0339c2d4ee7b87a1f8520ab8de61651222df83e4
Time: 2015-12-18
Author: evan.n.feinberg@gmail.com
File Name: deep_chem/models/deep3d.py
Class Name: DockingDNN
Method Name: fit_on_batch


Project Name: eriklindernoren/Keras-GAN
Commit Name: cf65784f7297dca491436112b9a5689ecd7533ec
Time: 2018-05-15
Author: eriklindernoren@live.se
File Name: wgan/wgan.py
Class Name: WGAN
Method Name: train