Skip to content
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

Examples using precomputed distance matrix for clustering #6014

Closed
celiafish opened this issue Dec 11, 2015 · 4 comments
Closed

Examples using precomputed distance matrix for clustering #6014

celiafish opened this issue Dec 11, 2015 · 4 comments

Comments

@celiafish
Copy link

Hi, I want to use clustering methods with precomputed distance matrix (NxN). I found DBSCAN has "metric" attribute but can't find examples to follow. Can you please help. Examples for other clustering methods are also very helpful. Thanks.

@amueller
Copy link
Member

what part are you unclear about?
use metric="precomputed" and provide a as X a precomputed similarity matrix.
See http://scikit-learn.org/dev/auto_examples/manifold/plot_mds.html for an example using MDS.

@jnothman
Copy link
Member

jnothman commented Feb 9, 2018 via email

@isukrit
Copy link

isukrit commented Feb 9, 2018

Can we change the type of distance to cosine similarity? Thanks!

@jnothman
Copy link
Member

jnothman commented Feb 9, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants