d5c8585b59b649c5474d40f67a9105cd89bf626c,testing/test_ekerns.py,TestKernExpDelta,test_exKxz,#TestKernExpDelta#,95
Before Change
self.assertTrue(np.allclose(orig, kdiag))
def test_exKxz(self):
with self.test_context():
covall = np.array([self.Xcov, self.Xcovc])
for k in self.kernels:
if type(k) is ekernels.Linear:
continue
exKxz = k.compute_exKxz(self.Z, self.Xmu, covall)
Kxz = k.compute_K(self.Xmu[:-1, :], self.Z) // NxM
xKxz = np.einsum("nm,nd->nmd", Kxz, self.Xmu[1:, :])
self.assertTrue(np.allclose(xKxz, exKxz))
def test_Kxz(self):
for k in self.kernels:
with self.test_context():
k.compile()
After Change
def test_exKxz(self):
covall = np.array([self.Xcov, self.Xcovc])
for k in self.kernels:
with self.test_context():
if isinstance(k, ekernels.Linear):
continue
k.compile()
exKxz = k.compute_exKxz(self.Z, self.Xmu, covall)
Kxz = k.compute_K(self.Xmu[:-1, :], self.Z) // NxM
xKxz = np.einsum("nm,nd->nmd", Kxz, self.Xmu[1:, :])
self.assertTrue(np.allclose(xKxz, exKxz))
def test_Kxz(self):
for k in self.kernels:
with self.test_context():
k.compile()
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 7
Instances
Project Name: GPflow/GPflow
Commit Name: d5c8585b59b649c5474d40f67a9105cd89bf626c
Time: 2017-09-27
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpDelta
Method Name: test_exKxz
Project Name: GPflow/GPflow
Commit Name: 73ef1c6268105511881adb9a9e4072a154194320
Time: 2017-09-27
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpDelta
Method Name: test_Kxz
Project Name: GPflow/GPflow
Commit Name: d5c8585b59b649c5474d40f67a9105cd89bf626c
Time: 2017-09-27
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpDiagXcov
Method Name: test_eKxz
Project Name: GPflow/GPflow
Commit Name: d5c8585b59b649c5474d40f67a9105cd89bf626c
Time: 2017-09-27
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpQuadrature
Method Name: test_eKxz
Project Name: GPflow/GPflow
Commit Name: d5c8585b59b649c5474d40f67a9105cd89bf626c
Time: 2017-09-27
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpDiagXcov
Method Name: test_eKdiag
Project Name: GPflow/GPflow
Commit Name: d5c8585b59b649c5474d40f67a9105cd89bf626c
Time: 2017-09-27
Author: art.art.v@gmail.com
File Name: testing/test_ekerns.py
Class Name: TestKernExpQuadrature
Method Name: test_exKxz
Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestSlice
Method Name: test_asymm