question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SOM Hyperparameter Tuning

See original GitHub issue

I have a SOM model below applied through an intrusion detection case (unsupervised case) whose dataset is quite big. I selected the suggested parameters based on a paper. However, I require to tune the model but there is no source on how to tune minisom. Can you please suggest me for tuning minisom?

"""Training the SOM"""
from minisom import MiniSom
som31 = MiniSom(x=31, y=31, input_len= 122, sigma= 1.0, learning_rate = 0.5, neighborhood_function='bubble',
              topology= 'rectangular', activation_distance='euclidean')
som31.random_weights_init(X_train_p)
som31.train_random(data = X_train_p, num_iteration = 500)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
JustGlowingcommented, May 17, 2021

You can now use this dashboard to explore the effects of the parameters on a sample dataset: https://share.streamlit.io/justglowing/minisom/dashboard/dashboard.py

1reaction
JustGlowingcommented, Apr 30, 2021

That way to determine the size of the map is well known, but it’s just a rule of thumb. The best size depends on how your data is distributed and you can find it trying different sizes and checking which one fits your data.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Self-Organizing Maps with fast.ai — Step 3: Updating SOM ...
SOM Hyperparameters · A self-organization phase, where elements of the map are sorted based on their relative distance · A fine-tuning phase, ...
Read more >
som.tune: Parameter tuning for Self-Organising Maps in yasomi
This function tunes some parameters of a Self-Organising Map by optimising a specified error measure. The prior structure is not optimised by this...
Read more >
Hyperparameters — SuSi 1.2.2 documentation
You can do that yourself or through an optimization. ... The grid size of a SOM is defined with the parameters n_rows and...
Read more >
[PDF] Hyperparameter Selection for Self-Organizing Maps
The self-organizing map (SOM) algorithm for finite data is derived as an approximate maximum a posteriori estimation algorithm for a ...
Read more >
(PDF) Optimal Tuning Parameters of Self Organizing Maps for ...
PDF | This paper presents an analysis for Self Organizing Map (SOM) using Response Surface Methodology (RSM) to find the optimal parameters ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found