MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / sample

Method sample

unsupervised_class3/dcgan_tf.py:498–501  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

496 plt.savefig('cost_vs_iteration.png')
497
498 def sample(self, n):
499 Z = np.random.uniform(-1, 1, size=(n, self.latent_dims))
500 samples = self.sess.run(self.sample_images_test, feed_dict={self.Z: Z, self.batch_sz: n})
501 return samples
502
503
504

Callers 2

fitMethod · 0.95
__init__Method · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected