mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-07 02:52:40 +02:00
removed some dubuggnin
This commit is contained in:
parent
46ee737492
commit
7973d7bf9f
2 changed files with 2 additions and 6 deletions
|
|
@ -80,8 +80,6 @@ class RBF(Stationary):
|
||||||
|
|
||||||
#contributions from psi0:
|
#contributions from psi0:
|
||||||
self.variance.gradient = np.sum(dL_dpsi0)
|
self.variance.gradient = np.sum(dL_dpsi0)
|
||||||
if self._debug:
|
|
||||||
num_grad = self.lengthscale.gradient.copy()
|
|
||||||
self.lengthscale.gradient = 0.
|
self.lengthscale.gradient = 0.
|
||||||
|
|
||||||
#from psi1
|
#from psi1
|
||||||
|
|
@ -101,8 +99,6 @@ class RBF(Stationary):
|
||||||
else:
|
else:
|
||||||
self.lengthscale.gradient += self._weave_psi2_lengthscale_grads(dL_dpsi2, psi2, Zdist_sq, S, mudist_sq, l2)
|
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
|
self.variance.gradient += 2.*np.sum(dL_dpsi2 * psi2)/self.variance
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,8 @@ def plot_fit(model, plot_limits=None, which_data_rows='all',
|
||||||
which_data_rows = slice(None)
|
which_data_rows = slice(None)
|
||||||
if which_data_ycols == 'all':
|
if which_data_ycols == 'all':
|
||||||
which_data_ycols = np.arange(model.output_dim)
|
which_data_ycols = np.arange(model.output_dim)
|
||||||
if len(which_data_ycols)==0:
|
#if len(which_data_ycols)==0:
|
||||||
raise ValueError('No data selected for plotting')
|
#raise ValueError('No data selected for plotting')
|
||||||
if ax is None:
|
if ax is None:
|
||||||
fig = pb.figure(num=fignum)
|
fig = pb.figure(num=fignum)
|
||||||
ax = fig.add_subplot(111)
|
ax = fig.add_subplot(111)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue