0479807f6a3636d0040f6e8cacbafc85cec0dfcc,testing/test_optimizers.py,TestBayesianOptimizer,setUp,#TestBayesianOptimizer#,203
Before Change
def setUp(self):
super(TestBayesianOptimizer, self).setUp()
design = GPflowOpt.design.LatinHyperCube(16, self.domain)
X, Y = design.generate(), parabola2d(design.generate())[0]
model = GPflow.gpr.GPR(X, Y, GPflow.kernels.RBF(2, ARD=True))
acquisition = GPflowOpt.acquisition.ExpectedImprovement(model)
self.optimizer = GPflowOpt.BayesianOptimizer(self.domain, acquisition)
def setup_multi_objective(self):
design = GPflowOpt.design.LatinHyperCube(16, self.domain)
After Change
class TestBayesianOptimizer(_TestOptimizer, unittest.TestCase):
def setUp(self):
super(TestBayesianOptimizer, self).setUp()
acquisition = GPflowOpt.acquisition.ExpectedImprovement(create_parabola_model(self.domain))
self.optimizer = GPflowOpt.BayesianOptimizer(self.domain, acquisition)
def test_default_initial(self):
self.assertTupleEqual(self.optimizer._initial.shape, (0, 2), msg="Invalid shape of initial points array")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: GPflow/GPflowOpt
Commit Name: 0479807f6a3636d0040f6e8cacbafc85cec0dfcc
Time: 2017-08-21
Author: joachim.vanderherten@ugent.be
File Name: testing/test_optimizers.py
Class Name: TestBayesianOptimizer
Method Name: setUp
Project Name: GPflow/GPflowOpt
Commit Name: 70e4d8aee5070b3b6fdf7e4739b42178a2d34f28
Time: 2017-05-05
Author: joachim.vanderherten@ugent.be
File Name: testing/test_acquisition.py
Class Name: TestAcquisitionSum
Method Name: setUp
Project Name: GPflow/GPflowOpt
Commit Name: 70e4d8aee5070b3b6fdf7e4739b42178a2d34f28
Time: 2017-05-05
Author: joachim.vanderherten@ugent.be
File Name: testing/test_acquisition.py
Class Name: TestAcquisitionProduct
Method Name: setUp
Project Name: GPflow/GPflowOpt
Commit Name: 0479807f6a3636d0040f6e8cacbafc85cec0dfcc
Time: 2017-08-21
Author: joachim.vanderherten@ugent.be
File Name: testing/test_optimizers.py
Class Name: TestBayesianOptimizer
Method Name: setUp