mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
Set the tied parameters to their mean
This commit is contained in:
parent
835ba0b628
commit
1246fd3b6b
1 changed files with 7 additions and 1 deletions
|
|
@ -40,7 +40,13 @@ class Tie(Kern):
|
|||
print("Adding tie")
|
||||
self.params.append(plist)
|
||||
|
||||
self.link_parameters(self.kern)
|
||||
self.link_parameters(self.kern)
|
||||
|
||||
for pitem in self.params:
|
||||
l = len(pitem)
|
||||
v,g = self.get_totals(pitem)
|
||||
for p in pitem:
|
||||
p.param_array[:] = v/l
|
||||
|
||||
|
||||
def get_totals(self,param_list):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue