3
$\begingroup$

I am trying to find clustering algorithms which can work with cosine similarity for tweet classification.

$\endgroup$
1
  • 4
    $\begingroup$ Methods that operate directly with distances can work out of the box. This includes various forms of agglomerative hierarchical clustering, DBSCAN, spectral clustering, graph theoretic algorithms that work based on graph cuts, etc. Other methods like k-means, k-medoids, etc. can also work, if implemented correctly for cosine distance. $\endgroup$
    – user20160
    Commented Mar 6, 2017 at 11:39

1 Answer 1

4
$\begingroup$

Spherical k-means is the classical example. But really, any clustering algorithm that can take an arbitrary distance measure should be applicable, including DBSCAN; E.g., SciKit-Learn's implementation lets you choose the distance metric for DBSCAN, where you can plug in cosine similarity [1].

[1] http://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.