Comments (6)
hi @soumya-ranjan-sahoo, this question has been already answered here: #25
from minisom.
Hi Team,
Thanks for a prompt response. I might need some more clarity on this one - For instance, if I want to cluster my data points into n-clusters, I need to design the SOM with n1 nodes on the output map? How about having an nm map where data points belonging to the same cluster are spread across the grid (Eg. in Iris data set, let's say orange, green and blue are 3 clusters and they are spread across the grid i.e. multiple nodes have orange clusters. How do we go about this?)
from minisom.
Then you have to treat the coordinates on the map as features and use another clustering algorithm to get the clusters.
from minisom.
If I treat the coordinates as features, then the grid-based distance between the nodes might be the same for positive as well as the negative class datapoints. For instance, let's have 3 nodes (0,0),(0,1),(0,2) with 2 classes. Class 1 might be mapped to (0,0) and (0,1), while class 2 gets mapped to (0,2). In this case, taking (i,j) coordinates as features how do I differentiate between 2 class as the distance between (0,0) and (0,1) is the same as (0,1) and (0,2).
Also, if I want to cluster my data points into n-clusters, do you recommend using a 1-D som of shape (1,n) where n = number of clusters?
Thanks in advance!
from minisom.
Hi again @soumya-ranjan-sahoo,
In the case that you described, where two the classes are equidistant, you should pick one at random unless you have some prior knowledge on the problem.
About the map size:
- If you want to cluster on the space created by the som, I'd recommend you to create a square map. Possibly large enough to map a sample per cell.
- If you want to use a small map, just consider each neuron as a cluster (as suggested in #25)
from minisom.
hi there, I made this example to show how to use minisom for clustering:
https://github.com/JustGlowing/minisom/blob/master/examples/Clustering.ipynb
from minisom.
Related Issues (20)
- Meaning of num_iteration inside train method HOT 2
- Clarification on the self.update function? HOT 2
- Decay function (Question) HOT 2
- Why is the project called minisom ? HOT 2
- is there a way to find out clusters with minisom? HOT 3
- Is there way to classify SOM based on the u-matrix ? HOT 1
- Question on topology parameter. HOT 2
- KeyError: 339
- Question on the radius. HOT 2
- About how you efficiently calculate the winner and the neighbourhood function. HOT 1
- How can I get reproducible results? HOT 2
- Meaning of the position of winning nodes and distance map HOT 3
- considerations on the hexagonal neighborhood used in `distance_map()` HOT 6
- It seems the next run will be influenced by the former run. Will it be more rational to reset after every run? HOT 4
- Is there a way to create clusters of equal size? HOT 2
- What's the order of the coordinates returned by the winner method? HOT 2
- How to save and load trained model for cluster prediction on new data? HOT 1
- PCA initialization HOT 7
- Adjacent nodes in hexagonal distance do not have distance 1 HOT 2
- Question: Interest in a connectivity matrix? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minisom.