70e4d8aee5070b3b6fdf7e4739b42178a2d34f28,testing/test_acquisition.py,TestAcquisitionProduct,setUp,#TestAcquisitionProduct#,179
Before Change
class TestAcquisitionProduct(_TestAcquisitionBinaryOperator, unittest.TestCase):
def setUp(self):
super(TestAcquisitionProduct, self).setUp()
design = GPflowOpt.design.FactorialDesign(4, self.domain)
X, Y = design.generate(), parabola2d(design.generate())
self.model = GPflow.gpr.GPR(X, Y, GPflow.kernels.RBF(2, ARD=True))
self.acquisition = GPflowOpt.acquisition.AcquisitionProduct(
GPflowOpt.acquisition.ExpectedImprovement(self.model),
GPflowOpt.acquisition.ExpectedImprovement(self.model))
After Change
class TestAcquisitionProduct(_TestAcquisitionBinaryOperator, unittest.TestCase):
def setUp(self):
super(TestAcquisitionProduct, self).setUp()
self.models = [self.create_parabola_model(), self.create_parabola_model()]
self.acquisition = GPflowOpt.acquisition.AcquisitionProduct(
GPflowOpt.acquisition.ExpectedImprovement(self.models[0]),
GPflowOpt.acquisition.ExpectedImprovement(self.models[1]))
def test_product_validity(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
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: 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/GPflow
Commit Name: d5addce606d13878a1a2e3177d3c5b8c432e1e38
Time: 2016-11-02
Author: mv310@cam.ac.uk
File Name: testing/test_kerns.py
Class Name: TestSlice
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