ff6c598abad81aec828e6a5967d2c6cfc5779a19,hyperopt/theano_gp.py,GP_BanditAlgo,K_fn,#GP_BanditAlgo#Any#Any#,503
Before Change
if self.multiplicative_kernels:
return tensor.mul(*gram_matrices)
else:
return tensor.add(*gram_matrices)
def prepare_GP_training_data(self, X_IVLs, Ys, Ys_var):
if self.constant_liar_global_mean:
y_mean = numpy.mean(Ys["ok"][:self.n_startup_jobs])
After Change
nx1 = self.s_n_train
else:
nx1 = self.s_n_test
base = tensor.alloc(fill_val, self.s_n_train, nx1)
for kern, iv0, iv1 in zip(self.kernels, x0, x1):
gram = kern.K(
iv0.vals.dimshuffle(0, "x"),
iv1.vals.dimshuffle(0, "x"))
base = modif(base, gram, iv0.idxs, iv1.idxs)
return base
def prepare_GP_training_data(self, ivls):
y_mean = numpy.mean(ivls["losses"]["ok"].vals)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: hyperopt/hyperopt
Commit Name: ff6c598abad81aec828e6a5967d2c6cfc5779a19
Time: 2011-10-21
Author: james.bergstra@gmail.com
File Name: hyperopt/theano_gp.py
Class Name: GP_BanditAlgo
Method Name: K_fn
Project Name: Theano/Theano
Commit Name: cbae058c5e17c22eacb5eab4562852dd24ea9391
Time: 2016-09-30
Author: oli.mastro@gmail.com
File Name: theano/tensor/opt_uncanonicalize.py
Class Name:
Method Name: local_alloc_dimshuffle
Project Name: explosion/thinc
Commit Name: 06f268451fa1e7f546baa3d937b3963a8e0ce991
Time: 2020-01-15
Author: honnibal+gh@gmail.com
File Name: thinc/backends/jax_ops.py
Class Name: JaxOps
Method Name: unflatten