Fixing W_columns and num_outputs nomenclature

This commit is contained in:
Ricardo 2013-09-23 17:29:33 +01:00
parent c800e0687f
commit 0ae9f9aafd
4 changed files with 36 additions and 21 deletions

View file

@ -367,9 +367,8 @@ class SparseGP(GPBase):
ax.plot(Zu[:, 0], Zu[:, 1], 'wo')
else:
pass
"""
if self.X.shape[1] == 2 and hasattr(self,'multioutput'):
"""
Xu = self.X[self.X[:,-1]==output,:]
if self.has_uncertain_inputs:
Xu = self.X * self._Xscale + self._Xoffset # NOTE self.X are the normalized values now
@ -380,6 +379,7 @@ class SparseGP(GPBase):
xerr=2 * np.sqrt(self.X_variance[which_data, 0]),
ecolor='k', fmt=None, elinewidth=.5, alpha=.5)
"""
Zu = self.Z[self.Z[:,-1]==output,:]
Zu = self.Z * self._Xscale + self._Xoffset
Zu = self.Z[self.Z[:,-1]==output ,0:1] #??
@ -388,7 +388,6 @@ class SparseGP(GPBase):
else:
raise NotImplementedError, "Cannot define a frame with more than two input dimensions"
"""
def predict_single_output(self, Xnew, output=0, which_parts='all', full_cov=False):
"""