Skip to content
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

Issues with hexagonal grid #95

Open
drryanmarks opened this issue Dec 19, 2018 · 4 comments
Open

Issues with hexagonal grid #95

drryanmarks opened this issue Dec 19, 2018 · 4 comments

Comments

@drryanmarks
Copy link

Hi,

I have an issue with using the hexagonal grid. I've run the code for airline example but when I plot the hexagonal grids all of the 'hot spots' are arranged in horizontal lines on the hexagon plot, not clustered into specific regions of the grids. Has anyone else had this issue? Please see image attached.
image

@HariharanOJ
Copy link

image

In sompy.codebook.py file change the y_coord formula
the problem is python takes 2/3 as zero so replace it with 2.0/3

@drryanmarks
Copy link
Author

Thanks!

I've changed the code but I am still getting the error. I notice that when I train the SOM the topographical error always = 0 which is making me think that there is something wrong there also. Any ideas?

I'm going to have a look into the code to see if there is a similar issue.

@HariharanOJ
Copy link

I got the same plots initially , I tried checking the codebook matrix and noticed that the all elements in the row had the same values . After making the above correction it worked fine. Sorry I wasn't able to help you.

@drryanmarks
Copy link
Author

I'm an idiot! For some reason I have two set of sompy files on my PC in the python folder and, yep - you've guessed it, I edited the wrong folder. I realized my mistake when I was putting in 'print' statements and they were not working.

I've made the change in the correct codebook and now it seems to be working. Moral of the story is make sure that you are editing the code that you are calling - a whole day of debugging in vain!

Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants