mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +02:00
fix assert raises in model tests
This commit is contained in:
parent
b7d6b0a0cc
commit
a4bb4a46a8
1 changed files with 4 additions and 9 deletions
|
|
@ -743,15 +743,10 @@ class TestMisc:
|
|||
ks = []
|
||||
for i in range(points.shape[0]):
|
||||
if (i % 2 == 0) and (i % 3 != 0):
|
||||
self.assertRaises(
|
||||
AssertionError,
|
||||
GPy.kern.LogisticBasisFuncKernel,
|
||||
1,
|
||||
points,
|
||||
ARD=i % 2 == 0,
|
||||
ARD_slope=i % 3 == 0,
|
||||
active_dims=[i],
|
||||
)
|
||||
with pytest.raises(AssertionError):
|
||||
GPy.kern.LogisticBasisFuncKernel(
|
||||
1, points, ARD=i % 2 == 0, ARD_slope=i % 3 == 0, active_dims=[i]
|
||||
)
|
||||
else:
|
||||
ks.append(
|
||||
GPy.kern.LogisticBasisFuncKernel(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue