cf65784f7297dca491436112b9a5689ecd7533ec,acgan/acgan.py,ACGAN,train,#ACGAN#,121

Before Change


            idx = np.random.randint(0, X_train.shape[0], half_batch)
            imgs = X_train[idx]

            noise = np.random.normal(0, 1, (half_batch, 100))

            // The labels of the digits that the generator tries to create an
            // image representation of

After Change



            // The labels of the digits that the generator tries to create an
            // image representation of
            sampled_labels = np.random.randint(0, 10, (batch_size, 1))

            // Generate a half batch of new images
            gen_imgs = self.generator.predict([noise, sampled_labels])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


Project Name: dgasmith/opt_einsum
Commit Name: 72b9ef8fe0d617149db5241b7197c0e8486f9557
Time: 2018-08-20
Author: fritzo@uber.com
File Name: opt_einsum/tests/test_sharing.py
Class Name:
Method Name: test_partial_sharing


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 9e3ac57d2a0480ded339841dda18b13e2645987f
Time: 2018-05-12
Author: eriklindernoren@gmail.com
File Name: implementations/bicyclegan/bicyclegan.py
Class Name:
Method Name: sample_images