mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
Fixed bug in the product of kernels with tied parameters
This commit is contained in:
parent
a1568ca1c8
commit
b0f6495ed4
3 changed files with 10 additions and 3 deletions
|
|
@ -102,6 +102,11 @@ class parameterised(object):
|
|||
else:
|
||||
return expr
|
||||
|
||||
def Nparam_transformed(self):
|
||||
ties = 0
|
||||
for ar in self.tied_indices:
|
||||
ties += ar.size - 1
|
||||
return self.Nparam - len(self.constrained_fixed_indices) - ties
|
||||
|
||||
def constrain_positive(self, which):
|
||||
"""
|
||||
|
|
@ -149,8 +154,6 @@ class parameterised(object):
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
def constrain_negative(self,which):
|
||||
"""
|
||||
Set negative constraints.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue