From 6b24dfffee823be5640460afdbe7394794715792 Mon Sep 17 00:00:00 2001 From: Michael T Smith Date: Tue, 21 Mar 2017 23:00:38 +0000 Subject: [PATCH] Added an assert to check the lengthscale vector is half the size of the input --- GPy/kern/src/multidimensional_integral_limits.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPy/kern/src/multidimensional_integral_limits.py b/GPy/kern/src/multidimensional_integral_limits.py index 8a07595b..97d76c6d 100644 --- a/GPy/kern/src/multidimensional_integral_limits.py +++ b/GPy/kern/src/multidimensional_integral_limits.py @@ -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.