You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After calling som.cluster, the 2D array som.clusters holds the cluster information for each node. Match that with som.bmu, and you have the cluster number for each data point. Something like this:
k=0# The data instance you are interested in som.clusters[som.bmus[k, 1], som.bmus[k, 0]]
After:
som = somoclu.Somoclu(n_columns, n_rows, data=data, maptype="toroid", initialization="pca")
som.train()
som.cluster()
som.view_umatrix(bestmatches=True)
How Can I get the cluster number or class for an specific data point like data[0]?
The text was updated successfully, but these errors were encountered: