mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
New operator: the kernels can be multiplied directly with the '*' character
This commit is contained in:
parent
c4f0a9bbc2
commit
f4b6568ee9
5 changed files with 79 additions and 7 deletions
|
|
@ -94,7 +94,7 @@ class parameterised(object):
|
|||
Other objects are passed through - i.e. integers which were'nt meant for grepping
|
||||
"""
|
||||
|
||||
if type(expr) is str:
|
||||
if type(expr) in [str, np.string_, np.str]:
|
||||
expr = re.compile(expr)
|
||||
return np.nonzero([expr.search(name) for name in self._get_param_names()])[0]
|
||||
elif type(expr) is re._pattern_type:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue