-
Notifications
You must be signed in to change notification settings - Fork 426
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 to visualize weights lattice? #119
Comments
Hi there, the method get_weights returns a matrix with the weight vector for each coordinate in the map. Once your som is trained they should be arranged in a good like pattern. I hope this helps. |
Thanks @JustGlowing ! Does this look correct to you below? Since the weights are multi-dimensional and I just want to see whether there is "twisting" occurring in the lattice, I took the mean across the 3rd dimension.
And the resultant plot: |
It's an interesting approach but I'm not sure the mean is reflective of the topology. Try with a 2D dataset first to have a feel. For higher dimensional data you can like at each subspace separately. |
Good point. After reading more into this today, I realized that Sammon mapping is a dimensionality reduction technique. I found a python implementation of sammon mapping here. Here is an example of using it with minisom. Hopefully I am doing this correctly! Any comments welcome!
|
It looks very good. I might add this example in the library if I managed to generalize the code that plots the lines. |
Sounds great. Glad that this helps! |
This example shows how to visualize the lattice in a 3D chart without using sammons to reduce the dimensionality: https://colab.research.google.com/drive/1UnJKG3i0mvUiOJB2UPxaSDygwlcv34w0?usp=sharing |
Thank you! This is great! |
Hello! I want to make a sammon plot of my trained SOM to view the location of the lattice nodes in order to determine whether the SOM is "twisted" or not. I have come across examples in the issues section of MiniSOM and example notebooks for hexagonal topology, but not for rectangular. Can someone please help with how the coordinates for the nodes would be extracted for the rectangular topology type SOM? Thanks for your help!
The text was updated successfully, but these errors were encountered: