GP_regression demo working with new style gradients for rbf, linear, white, bias

This commit is contained in:
James Hensman 2012-11-30 11:04:14 +00:00
parent 5f92ff6785
commit 78d1abfc22
5 changed files with 18 additions and 25 deletions

View file

@ -29,7 +29,7 @@ class GP_regression(model):
def __init__(self,X,Y,kernel=None,normalize_X=False,normalize_Y=False, Xslices=None):
if kernel is None:
kernel = kern.rbf(X.shape[1]) + kern.white(X.shape[1])
kernel = kern.rbf(X.shape[1]) + kern.white(X.shape[1]) + kern.bias(X.shape[1])
# parse arguments
self.Xslices = Xslices