5a2be68976b668a2551e62cb6188d3cfa280e3ba,hypergan/samplers/random_walk_sampler.py,RandomWalkSampler,_sample,#RandomWalkSampler#,15
Before Change
def _sample(self):
gan = self.gan
print("UNIFORM")
z_t = gan.uniform_encoder.sample
inputs_t = gan.inputs.x
if self.z is None:
After Change
if self.z is None:
self.z = gan.uniform_encoder.sample.eval()/2
direct = gan.uniform_encoder.sample.eval()[0]/2
direct = np.reshape(direct, [1, direct.shape[0]])
self.direction = np.tile(direct, [self.z.shape[0], 1])
self.input = gan.session.run(gan.inputs.x)
if self.step > self.steps:
self.z = np.minimum(self.z+self.direction, 1)
self.z = np.maximum(self.z, -1)
self.direction = gan.uniform_encoder.sample.eval()
self.step = 0
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 5a2be68976b668a2551e62cb6188d3cfa280e3ba
Time: 2017-07-07
Author: martyn@255bits.com
File Name: hypergan/samplers/random_walk_sampler.py
Class Name: RandomWalkSampler
Method Name: _sample
Project Name: HyperGAN/HyperGAN
Commit Name: 5d9dbd3cce974dd7652b515dcbd58969ccbf4592
Time: 2016-07-12
Author: martyn@255bits.com
File Name: shared/data_loader.py
Class Name:
Method Name: labelled_image_tensors_from_directory
Project Name: reinforceio/tensorforce
Commit Name: 6407280486749791c4753e755fe3e6d0f19ca345
Time: 2017-04-09
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/models/naf_model.py
Class Name: NAFModel
Method Name: create_outputs