Hi all,
I want to ask you about clustering usign Birch clustering algorithm.
I have a *distance matrix* n*n M where M_ij is the distance between object_i and object_j.(You can see file format in the attachment).
I want to cluster them using Birch clustering algorithm.
Does this method have 'precomputed' option.
I needed train an SVM on the centroids of the microclusters so
How can i get the centroids of the microclusters?
Any help would be highly appreciated.
Birch code:
from sklearn.cluster import Birch
from io import StringIO
import numpy as np
X=np.loadtxt(open("C:\dm.txt", "rb"), delimiter="\t")
brc = Birch(branching_factor=50, n_clusters=3, threshold=0.5,compute_labels=True,copy=True)
brc.fit(X)
brc.predict(X)
print(brc.predict(X))
Any help would be highly appreciated.