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
Hi, I'm reaching to you hoping that you can help me.
This is the snippet of my input data and som settings: data= [[0.0, 0.85, 0.0, 0.0, 0.0, 0.85, 0.0, 0.85], [0.0, 0.85, 0.0, 0.9, 0.0, 0.85, 0.0, 0.9]...] som = MiniSom(4, 4, 8, learning_rate= 0.5, neighborhood_function='gaussian', sigma=1.0)
I followed your tutorial on clustering, and instead of getting neuron-cluster representation I get neurons plotted in sets of four of the same color (total 16 neurons). I expected 16 different colors, each color for one set of the data assigned to certain neuron.
For image plotting I used the same code as in Clustering notebook
som.winner(data[0]) gets me the result e.g. (3,1)
With som.get_weights() I have following values:
Question: How do I get neuron coordinates from this table? I don't understand how (3,1) translates to coordinate system same as the input data.
The text was updated successfully, but these errors were encountered:
I followed your tutorial on clustering, and instead of getting neuron-cluster representation I get neurons plotted in sets of four of the same color (total 16 neurons). I expected 16 different colors, each color for one set of the data assigned to certain neuron.
Even if you have 16 neurons, during clustering only a subset might end up mapping some samples.
Question: How do I get neuron coordinates from this table? I don't understand how (3,1) translates to coordinate system same as the input data.
You can use the method winner to get neuron coordinates.
(3, 1) is used to define the size of the map.
My advice is to use a map with a small number of neuron first (for example (3,1)) and see if the results look like in the example, if so you can start increasing the size until it makes sense for you.
Hi, I'm reaching to you hoping that you can help me.
This is the snippet of my input
data
andsom
settings:data= [[0.0, 0.85, 0.0, 0.0, 0.0, 0.85, 0.0, 0.85], [0.0, 0.85, 0.0, 0.9, 0.0, 0.85, 0.0, 0.9]...]
som = MiniSom(4, 4, 8, learning_rate= 0.5, neighborhood_function='gaussian', sigma=1.0)
I followed your tutorial on clustering, and instead of getting neuron-cluster representation I get neurons plotted in sets of four of the same color (total 16 neurons). I expected 16 different colors, each color for one set of the data assigned to certain neuron.
For image plotting I used the same code as in Clustering notebook
som.winner(data[0])
gets me the result e.g.(3,1)
With
![image](https://private-user-images.githubusercontent.com/18489380/306285610-0b6205e9-c9f6-4bb4-bfa9-7b91c189bcd1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2NzMzNzYsIm5iZiI6MTcyMTY3MzA3NiwicGF0aCI6Ii8xODQ4OTM4MC8zMDYyODU2MTAtMGI2MjA1ZTktYzlmNi00YmI0LWJmYTktN2I5MWMxODliY2QxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDE4MzExNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkMmE5MjQxMTYwNjdmZjA0NzBmNjVlZWFhMDc3NDIyOTUyOTBmNGJjNTcxZmJkODZkZmI3ZjJjOTA2MWEzNzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.t1jDauJzrZIhKjTdLe7SRPfpCSfQjp-i3mCesNDzJ-E)
som.get_weights()
I have following values:Question: How do I get neuron coordinates from this table? I don't understand how
(3,1)
translates to coordinate system same as the input data.The text was updated successfully, but these errors were encountered: