From 7973d7bf9f7fc60270fa897448801cdc24581bfc Mon Sep 17 00:00:00 2001 From: James Hensman Date: Mon, 31 Mar 2014 13:33:44 +0100 Subject: [PATCH] removed some dubuggnin --- GPy/kern/_src/rbf.py | 4 ---- GPy/plotting/matplot_dep/models_plots.py | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/GPy/kern/_src/rbf.py b/GPy/kern/_src/rbf.py index 0f19dbd1..c5914d58 100644 --- a/GPy/kern/_src/rbf.py +++ b/GPy/kern/_src/rbf.py @@ -80,8 +80,6 @@ class RBF(Stationary): #contributions from psi0: self.variance.gradient = np.sum(dL_dpsi0) - if self._debug: - num_grad = self.lengthscale.gradient.copy() self.lengthscale.gradient = 0. #from psi1 @@ -101,8 +99,6 @@ class RBF(Stationary): else: self.lengthscale.gradient += self._weave_psi2_lengthscale_grads(dL_dpsi2, psi2, Zdist_sq, S, mudist_sq, l2) - if self._debug: - import ipdb;ipdb.set_trace() self.variance.gradient += 2.*np.sum(dL_dpsi2 * psi2)/self.variance else: diff --git a/GPy/plotting/matplot_dep/models_plots.py b/GPy/plotting/matplot_dep/models_plots.py index b626758f..57b64ae5 100644 --- a/GPy/plotting/matplot_dep/models_plots.py +++ b/GPy/plotting/matplot_dep/models_plots.py @@ -53,8 +53,8 @@ def plot_fit(model, plot_limits=None, which_data_rows='all', which_data_rows = slice(None) if which_data_ycols == 'all': which_data_ycols = np.arange(model.output_dim) - if len(which_data_ycols)==0: - raise ValueError('No data selected for plotting') + #if len(which_data_ycols)==0: + #raise ValueError('No data selected for plotting') if ax is None: fig = pb.figure(num=fignum) ax = fig.add_subplot(111)