70e4d8aee5070b3b6fdf7e4739b42178a2d34f28,GPflowOpt/acquisition.py,Acquisition,_optimize_all,#Acquisition#,45
Before Change
self._optimize_all()
def _optimize_all(self):
for model in self.models:
// If likelihood variance is close to zero, updating data may result in non-invertible K
// Increase likelihood variance a bit.
model.likelihood.variance = 4.0
model.optimize()
def _build_acquisition_wrapper(self, Xcand, gradients=True):
acq = self.build_acquisition(Xcand)
if gradients:
return acq, tf.gradients(acq, [Xcand], name="acquisition_gradient")[0]
After Change
except:
// After data update, the starting point for the hypers may result in non-invertible K
// Reset the hypers to the values when the acquisition function was initialized.
model.set_state(hypers)
model.optimize()
def _build_acquisition_wrapper(self, Xcand, gradients=True):
acq = self.build_acquisition(Xcand)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: GPflow/GPflowOpt
Commit Name: 70e4d8aee5070b3b6fdf7e4739b42178a2d34f28
Time: 2017-05-05
Author: joachim.vanderherten@ugent.be
File Name: GPflowOpt/acquisition.py
Class Name: Acquisition
Method Name: _optimize_all
Project Name: flow-project/flow
Commit Name: 5dd2b15292dbe0b8d1185a9e6dcbb588d38c9cfe
Time: 2018-02-01
Author: akreidieh@gmail.com
File Name: flow/envs/base_env.py
Class Name: Env
Method Name: setup_initial_state
Project Name: senarvi/theanolm
Commit Name: 360ed9d9b6a8f25e8ec1302b523ca3dcc97c6f02
Time: 2016-12-06
Author: seppo.git@marjaniemi.com
File Name: theanolm/network/network.py
Class Name: Network
Method Name: set_state