January 2019
Intermediate to advanced
316 pages
8h 16m
English
Perform the following steps to train the discriminator network:
z_noise = np.random.normal(0, 1, size=(batch_size, z_shape))
To sample the values, use the normal() method from the np.random module in the Numpy library.
image_batch = X[index * batch_size:(index + 1) * batch_size]
generated_images = gen_model.predict_on_batch(z_noise)
y_real = np.ones(batch_size) - np.random.random_sample(batch_size) * 0.2y_fake = np.random.random_sample(batch_size) ...Read now
Unlock full access