Created
June 30, 2014 08:38
-
-
Save jamesmcm/7ddc26c4f9f3df1dcb49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
AttributeError Traceback (most recent call last) | |
<ipython-input-4-3272cd51cdba> in <module>() | |
29 #GPy.core.SparseGP? | |
30 #m=GPy.core.SparseGP(X, Y, Z, k, likelihood, inference_method=VarDTCMissingData(inan=inan)) | |
---> 31 m=GPy.core.GP(X, Y, k, likelihood, inference_method=VarDTCMissingData(inan=inan)) | |
32 | |
33 | |
/is/ei/jmcmurr/.local/lib/python2.7/site-packages/GPy-0.4.6-py2.7.egg/GPy/core/parameterization/parameterized.pyc in __call__(self, *args, **kw) | |
12 def __call__(self, *args, **kw): | |
13 instance = super(ParametersChangedMeta, self).__call__(*args, **kw) | |
---> 14 instance.parameters_changed() | |
15 return instance | |
16 | |
/is/ei/jmcmurr/.local/lib/python2.7/site-packages/GPy-0.4.6-py2.7.egg/GPy/core/gp.pyc in parameters_changed(self) | |
75 | |
76 def parameters_changed(self): | |
---> 77 self.posterior, self._log_marginal_likelihood, self.grad_dict = self.inference_method.inference(self.kern, self.X, self.likelihood, self.Y, self.Y_metadata) | |
78 self.likelihood.update_gradients(self.grad_dict['dL_dthetaL']) | |
79 self.kern.update_gradients_full(self.grad_dict['dL_dK'], self.X) | |
/is/ei/jmcmurr/.local/lib/python2.7/site-packages/GPy-0.4.6-py2.7.egg/GPy/inference/latent_function_inference/var_dtc.pyc in inference(self, kern, X, Z, likelihood, Y, Y_metadata) | |
255 uncertain_inputs = False | |
256 psi0_all = kern.Kdiag(X) | |
--> 257 psi1_all = kern.K(X, Z) | |
258 psi2_all = None | |
259 | |
/is/ei/jmcmurr/.local/lib/python2.7/site-packages/GPy-0.4.6-py2.7.egg/GPy/kern/_src/kernel_slice_operations.pyc in wrap(self, X, X2, *a, **kw) | |
62 @wraps(f) | |
63 def wrap(self, X, X2 = None, *a, **kw): | |
---> 64 with _Slice_wrap(self, X, X2) as s: | |
65 ret = f(self, s.X, s.X2, *a, **kw) | |
66 return ret | |
/is/ei/jmcmurr/.local/lib/python2.7/site-packages/GPy-0.4.6-py2.7.egg/GPy/kern/_src/kernel_slice_operations.pyc in __init__(self, k, X, X2) | |
36 assert X.ndim == 2, "only matrices are allowed as inputs to kernels for now, given X.shape={!s}".format(X.shape) | |
37 if X2 is not None: | |
---> 38 assert X2.ndim == 2, "only matrices are allowed as inputs to kernels for now, given X2.shape={!s}".format(X2.shape) | |
39 if (self.k.active_dims is not None) and (self.k._sliced_X == 0): | |
40 self.k._check_active_dims(X) | |
AttributeError: 'Gaussian' object has no attribute 'ndim' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment