lmcinnes / umap

Uniform Manifold Approximation and Projection
BSD 3-Clause "New" or "Revised" License
7.37k stars 800 forks source link

ValueError: Precomputed metric requires shape (n_queries, n_indexed). Dear lmcinnes sir kindly help me. #157

Open suriyaPrakashJambunathan opened 5 years ago

suriyaPrakashJambunathan commented 5 years ago

Applying Kernel PCA

from sklearn.decomposition import KernelPCA kpca=KernelPCA(n_components=2,kernel='precomputed') X_train=kpca.fit_transform(X_train) X_test=kpca.transform(X_test)

Getting Error while executing with KDD CUP Data set .kindly give solution for this Error. Dear lmcinnes sir kindly help me as early as possible.

suriyaPrakashJambunathan commented 5 years ago

Sir Awaiting for your Response.

lmcinnes commented 5 years ago

Sorry, I have been travelling. I admit that I am a little confused as to what your question is: I do not maintain sklearn's KernelPCA implementation, nor is this the appropriate repository to report such an issue. You should perhaps try filing an issue with sklearn, but you may have better luck with the gitter channels, or documentation.

On Sat, Nov 3, 2018 at 1:09 PM suriyaPrakashJambunathan < notifications@github.com> wrote:

Sir Awaiting for your Response.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lmcinnes/umap/issues/157#issuecomment-435586770, or mute the thread https://github.com/notifications/unsubscribe-auth/ALaKBapAWfGJdM25O8MQ9qkNl6K2Q94Qks5urZWmgaJpZM4YHQMp .