-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi dimensional input Classification #612
Comments
Could you send your example, so we can see what is happening?
… On 21. Mar 2018, at 09:45, German Alfaro ***@***.***> wrote:
Hi,
I am trying to do a multi dimensional input for a classification GP, it works very well for one dimension, but as soon I add another feature gives me a hashable error, I am pretty sure is something simple, but I cannot find a working example
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sure,
/usr/local/lib/python2.7/dist-packages/GPy/core/gp.pyc in predict(self, Xnew, full_cov, Y_metadata, kern, likelihood, include_likelihood) /usr/local/lib/python2.7/dist-packages/GPy/core/gp.pyc in _raw_predict(self, Xnew, full_cov, kern) /usr/local/lib/python2.7/dist-packages/GPy/inference/latent_function_inference/posterior.pyc in _raw_predict(self, kern, Xnew, pred_var, full_cov) /usr/local/lib/python2.7/dist-packages/GPy/kern/src/kernel_slice_operations.pyc in wrap(self, X, X2, *a, **kw) /usr/local/lib/python2.7/dist-packages/GPy/kern/src/kernel_slice_operations.pyc in init(self, k, X, X2, diag, ret_shape) in _slice_X(self, X) /usr/local/lib/python2.7/dist-packages/paramz/caching.pyc in g(obj, *args, **kw) /usr/local/lib/python2.7/dist-packages/paramz/caching.pyc in call(self, *args, **kw) /usr/local/lib/python2.7/dist-packages/GPy/kern/src/kern.pyc in _slice_X(self, X) /usr/local/lib/python2.7/dist-packages/pandas/core/frame.pyc in getitem(self, key) /usr/local/lib/python2.7/dist-packages/pandas/core/frame.pyc in _getitem_column(self, key) /usr/local/lib/python2.7/dist-packages/pandas/core/generic.pyc in _get_item_cache(self, item) TypeError: unhashable type |
Might X_test be a pandas array? Then try to convert it to a simple numpy array before giving it to the model. |
Thank you I did and it works!
…On Thu, Mar 22, 2018 at 1:25 PM, Max Zwiessele ***@***.***> wrote:
Might X_test be a pandas array? Then try to convert it to a simple numpy
array before giving it to the model.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#612 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF8zuOGDN6F0n9MzdSixdlLmIdKC_xuYks5thAiigaJpZM4SzLpF>
.
|
Hi,
I am trying to do a multi dimensional input for a classification GP, it works very well for one dimension, but as soon I add another feature gives me a hashable error, I am pretty sure is something simple, but I cannot find a working example
Thanks!
The text was updated successfully, but these errors were encountered: