From bfa18ef6625770733f24d154f12505b5353e69a3 Mon Sep 17 00:00:00 2001 From: Alan Saul Date: Fri, 14 Mar 2014 15:34:00 +0000 Subject: [PATCH] Fixed Y_metadata bug --- GPy/core/gp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GPy/core/gp.py b/GPy/core/gp.py index 05e3e671..70b7d695 100644 --- a/GPy/core/gp.py +++ b/GPy/core/gp.py @@ -42,7 +42,10 @@ class GP(Model): assert Y.shape[0] == self.num_data _, self.output_dim = self.Y.shape - self.Y_metadata = Y_metadata or {} + if Y_metadata is None: + Y_metadata = {} + else: + self.Y_metadata = Y_metadata assert isinstance(kernel, kern.Kern) #assert self.input_dim == kernel.input_dim