mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
readded parameterized changes
This commit is contained in:
parent
aaaa1b5251
commit
417a29b148
1 changed files with 12 additions and 4 deletions
|
|
@ -171,10 +171,18 @@ class parameterised(object):
|
||||||
return expr
|
return expr
|
||||||
|
|
||||||
def Nparam_transformed(self):
|
def Nparam_transformed(self):
|
||||||
|
"""
|
||||||
|
Compute the number of parameters after ties and fixing have been performed
|
||||||
|
"""
|
||||||
ties = 0
|
ties = 0
|
||||||
for ar in self.tied_indices:
|
for ti in self.tied_indices:
|
||||||
ties += ar.size - 1
|
ties += ti.size - 1
|
||||||
return self.Nparam - len(self.constrained_fixed_indices) - ties
|
|
||||||
|
fixes = 0
|
||||||
|
for fi in self.constrained_fixed_indices:
|
||||||
|
fixes += len(fi)
|
||||||
|
|
||||||
|
return self.Nparam - fixes - ties
|
||||||
|
|
||||||
def constrain_positive(self, which):
|
def constrain_positive(self, which):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue