mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 03:22:38 +02:00
add kernel adding another add kernel
This commit is contained in:
parent
ee85229a5d
commit
bf6cdf5d31
2 changed files with 2 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ class Add(CombinationKernel):
|
|||
|
||||
def add(self, other, name='sum'):
|
||||
if isinstance(other, Add):
|
||||
other_params = other._parameters_.copy()
|
||||
other_params = other._parameters_[:]
|
||||
for p in other_params:
|
||||
other.remove_parameter(p)
|
||||
self.add_parameters(*other_params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue