4b30de5e9a72009da8317b66e803d3e7c3ed7c84,hyperopt/gdist.py,gGauss,theano_sampler_helper,#gGauss#Any#Any#,415
Before Change
sigma = stdev ** 2
elems = memo[id(self)]
size = get_value(self.size, memo)
if isinstance(size, int):
ds = (elems.shape[0], size)
else:
ds = (elems.shape[0],) + tuple(size)
vals = s_rng.normal(draw_shape=ds,
mu=mu, sigma=sigma)
memo[id(self)] = (elems, vals)
class gUniform(gRandom):
After Change
stdev = get_value(self.stdev, memo)
sigma = stdev ** 2
elems = memo[id(self)]
size = get_value(self.size, memo)
ds = self.get_shape(size, elems)
vals = s_rng.normal(draw_shape=ds,
mu=mu, sigma=sigma)
memo[id(self)] = (elems, vals)
class gUniform(gRandom):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 16
Instances
Project Name: hyperopt/hyperopt
Commit Name: 4b30de5e9a72009da8317b66e803d3e7c3ed7c84
Time: 2011-10-21
Author: dyamins@gmail.com
File Name: hyperopt/gdist.py
Class Name: gGauss
Method Name: theano_sampler_helper
Project Name: hyperopt/hyperopt
Commit Name: 4b30de5e9a72009da8317b66e803d3e7c3ed7c84
Time: 2011-10-21
Author: dyamins@gmail.com
File Name: hyperopt/gdist.py
Class Name: gUniform
Method Name: theano_sampler_helper
Project Name: hyperopt/hyperopt
Commit Name: 4b30de5e9a72009da8317b66e803d3e7c3ed7c84
Time: 2011-10-21
Author: dyamins@gmail.com
File Name: hyperopt/gdist.py
Class Name: gChoice
Method Name: theano_sampler_helper