added gplbm and sparse gp to new parameterized structure

This commit is contained in:
Max Zwiessele 2013-11-06 11:40:54 +00:00
parent c8eac84d55
commit 3316d29341
13 changed files with 106 additions and 96 deletions

View file

@ -544,7 +544,7 @@ class Model(Parameterized):
if not hasattr(self, 'kern'):
raise ValueError, "this model has no kernel"
k = [p for p in self.kern.parts if p.name in ['rbf', 'linear', 'rbf_inv']]
k = [p for p in self.kern._parameters_ if p.name in ['rbf', 'linear', 'rbf_inv']]
if (not len(k) == 1) or (not k[0].ARD):
raise ValueError, "cannot determine sensitivity for this kernel"
k = k[0]