-
Notifications
You must be signed in to change notification settings - Fork 430
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
How do I get the cluster number to which each sample belongs? #64
Comments
Hi, since this is a recurring question I decided to add an example here: https://github.com/JustGlowing/minisom/blob/master/examples/Clustering.ipynb |
Hi, Thanks for quickly answering my question. Depending on the dataset info i.e. no of clusters and number of data points in each class, we can calculate the centroids for the coordinates returned by som.winner and use it to find the cluster number and calculate the clustering accuracy? |
Of course you can. The centroids are the weights of the som (you can also
compute the centroids by averaging the data in each cluster).
You can use any metric for computing the accuracy of your clustering
method, minisom offers the quantization error.
…On Sat, Mar 28, 2020, 10:38 Sumanth Simha C ***@***.***> wrote:
Hi,
Thanks for quickly answering my question. Depending on the dataset info
i.e. no of clusters and number of data points in each class, we can
calculate the centroids for the coordinates returned by som.winner and use
it to find the cluster number and calculate the clustering accuracy?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFTNGISOJJXO5RAMEOJEUDRJXHSHANCNFSM4LVQR5BA>
.
|
Is it possible that I can contribute computing the cluster numbers and clustering accuracy in the way which I described before to this repo? |
Of course, you have to open a pull request. Google is your friends for that
;)
…On Sat, Mar 28, 2020, 11:06 Sumanth Simha C ***@***.***> wrote:
Is it possible that I can contribute computing the cluster numbers and
clustering accuracy in the way which I described before to this repo?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFTNGLW7CQQDV7OQXOVCVLRJXK23ANCNFSM4LVQR5BA>
.
|
PS: I updated the example so that also the centroids are plotted. |
Hi, |
hi @Edmond-Lee-Zse-Wong check the example linked above. |
It's likely that some clusters are spread across different neurons. The som size is not adequate for the task that you are trying to perform. |
Yes I think so, maybe I should reduce the size to 2 or 3. |
Hi,
Is there any way I can get the cluster number to which each datapoint in that dataset belongs to?
The text was updated successfully, but these errors were encountered: