mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 20:12:38 +02:00
rbf kernel now has an ARD flag
This commit is contained in:
parent
688d6ac7a5
commit
68d7e23648
4 changed files with 57 additions and 28 deletions
|
|
@ -22,7 +22,7 @@ from Brownian import Brownian as Brownianpart
|
|||
#using meta-classes to make the objects construct properly wthout them.
|
||||
|
||||
|
||||
def rbf(D,variance=1., lengthscale=1.):
|
||||
def rbf(D,variance=1., lengthscale=None,ARD=False):
|
||||
"""
|
||||
Construct an RBF kernel
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ def rbf(D,variance=1., lengthscale=1.):
|
|||
:param lengthscale: the lengthscale of the kernel
|
||||
:type lengthscale: float
|
||||
"""
|
||||
part = rbfpart(D,variance,lengthscale)
|
||||
part = rbfpart(D,variance,lengthscale,ARD)
|
||||
return kern(D, [part])
|
||||
|
||||
def rbf_ARD(D,variance=1., lengthscales=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue