f09b5f891b8eaac984952cd8da34d8b6d36f6cda,tests/configuration_test.py,ConfigurationTest,test_constructor,#ConfigurationTest#,14
Before Change
class ConfigurationTest(tf.test.TestCase):
def test_constructor(self):
with self.test_session():
gan = GAN(graph = graph, ops = MockOps, config = {})
self.assertEqual(gan.graph.x, graph.x)
After Change
default = hg.Configuration.default()
self.assertNotEqual(default.trainer, None)
self.assertEqual(len(default.discriminators), 1)
self.assertEqual(len(default.losses), 1)
if __name__ == "__main__":
tf.test.main()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: f09b5f891b8eaac984952cd8da34d8b6d36f6cda
Time: 2017-06-01
Author: martyn@255bits.com
File Name: tests/configuration_test.py
Class Name: ConfigurationTest
Method Name: test_constructor
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/losses/supervised_loss_test.py
Class Name: SupervisedLossTest
Method Name: test_create
Project Name: HyperGAN/HyperGAN
Commit Name: 2a81f8ef7347d462cf79772b4fd70e591c755f26
Time: 2017-06-01
Author: martyn@255bits.com
File Name: tests/gan_test.py
Class Name: GANTest
Method Name: test_default