mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-05 14:55:15 +02:00
Added an assert to check the lengthscale vector is half the size of the input
This commit is contained in:
parent
be77e35b23
commit
6b24dfffee
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ class Multidimensional_Integral_Limits(Kern): #todo do I need to inherit from St
|
|||
lengthscale = np.ones(1)
|
||||
else:
|
||||
lengthscale = np.asarray(lengthscale)
|
||||
|
||||
assert len(lengthscale)==input_dim/2
|
||||
|
||||
self.lengthscale = Param('lengthscale', lengthscale, Logexp()) #Logexp - transforms to allow positive only values...
|
||||
self.variances = Param('variances', variances, Logexp()) #and here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue