Coder Social home page Coder Social logo

Comments (6)

JustGlowing avatar JustGlowing commented on May 17, 2024

hi @soumya-ranjan-sahoo, this question has been already answered here: #25

from minisom.

soumya-ranjan-sahoo avatar soumya-ranjan-sahoo commented on May 17, 2024

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.

JustGlowing avatar JustGlowing commented on May 17, 2024

Then you have to treat the coordinates on the map as features and use another clustering algorithm to get the clusters.

from minisom.

soumya-ranjan-sahoo avatar soumya-ranjan-sahoo commented on May 17, 2024

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.

JustGlowing avatar JustGlowing commented on May 17, 2024

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.

JustGlowing avatar JustGlowing commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.