f3f9e020119736920b5bf3adc91fd658e1910775,examples/mnist_denoising_autoencoder.py,,,#,33

Before Change


x_decoded = autoencoder.predict(x_test_noisy)

// Display the 1st 8 corrupted and denoised images
imgs = np.concatenate([x_test_noisy[:8], x_decoded[:8]])
imgs = imgs.reshape((4, 4, image_size, image_size))
imgs = np.vstack([np.hstack(i) for i in imgs])
plt.figure()

After Change


          "Corrupted Input: middle rows, "
          "Denoised Input:  third rows")
plt.imshow(imgs, interpolation="none", cmap="gray")
Image.fromarray(imgs).save("corrupted_and_denoised.png")
plt.show()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: f3f9e020119736920b5bf3adc91fd658e1910775
Time: 2018-01-12
Author: ozabluda@gmail.com
File Name: examples/mnist_denoising_autoencoder.py
Class Name:
Method Name:


Project Name: raghakot/keras-vis
Commit Name: 2443550ee6915daf6e7ff6306f3dc2922752ea4b
Time: 2017-07-09
Author: ragha@outlook.com
File Name: vis/backend/tensorflow_backend.py
Class Name:
Method Name: modify_model_backprop


Project Name: catalyst-team/catalyst
Commit Name: 28cedbdaf526489986a9ff06f18e51e65b45a57c
Time: 2019-07-30
Author: tez.romach@gmail.com
File Name: catalyst/dl/callbacks/checkpoint.py
Class Name: CheckpointCallback
Method Name: save_checkpoint


Project Name: Hironsan/anago
Commit Name: c2e63ae0cec5359300cd8dbc93ee47f1fbd582aa
Time: 2017-11-18
Author: light.tree.1.13@gmail.com
File Name: tests/train_test.py
Class Name: TrainerTest
Method Name: test_train