Hello,

I have n documents and want to use precomputed similarity mertric between a
pair of documents for clustering.
I created a  2 dim numpy Array say X, containing similarity score for every
pair of documents.
Also
type(X) and X.shape gives the output as
<type 'numpy.ndarray'>
(n, n)
Then I create a cluster object using
*object= *sklearn.cluster.AgglomerativeClustering(*n_clusters=10*,
*affinity='precomputed')*
and then may I  do
*object.*fit_predict(X)  to get the labels in each cluster.

Thanks,
Amita
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to