mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 20:42:39 +02:00
name added as a parameter of Prod
This commit is contained in:
parent
8e22373a00
commit
19c87c9f77
2 changed files with 7 additions and 5 deletions
|
|
@ -129,7 +129,7 @@ class Kern(Parameterized):
|
|||
"""
|
||||
return self.prod(other, tensor=True)
|
||||
|
||||
def prod(self, other, tensor=False):
|
||||
def prod(self, other, tensor=False, name=None):
|
||||
"""
|
||||
Multiply two kernels (either on the same space, or on the tensor
|
||||
product of the input space).
|
||||
|
|
@ -142,4 +142,4 @@ class Kern(Parameterized):
|
|||
"""
|
||||
assert isinstance(other, Kern), "only kernels can be added to kernels..."
|
||||
from prod import Prod
|
||||
return Prod(self, other, tensor)
|
||||
return Prod(self, other, tensor, name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue