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

question about the result #1

Open
yuzehui1996 opened this issue Nov 14, 2018 · 4 comments
Open

question about the result #1

yuzehui1996 opened this issue Nov 14, 2018 · 4 comments

Comments

@yuzehui1996
Copy link

I am confused about the loss did not decrease at all and the som_result.png was not the same as you showed.Should I change the hyperparameter such as lr or total epochs? Thanks a lot!

@Dotori-HJ
Copy link
Owner

Did you wait for the learning to end? During SOM learning, In my code change the hyperparameters to match the epoch. So you can see the desired results at the end of the learning.

If you want to see the results more quickly, reduce the number of trainning data.
You can insert below code, under 66 lines of <main.py>

train_data.train_data = train_data.train_data[:1000]
train_data.train_labels = train_data.train_labels[:1000]

That way, you'll only use 1,000 trainning data.
I hope you get a good result:)

@Dotori-HJ Dotori-HJ reopened this Nov 22, 2018
@heitorrapela
Copy link
Contributor

heitorrapela commented Feb 13, 2019

I used all dataset training with a 30x30 grid 👍 I got a good result:

All Mnist Dataset trained with 30x30 SOM grid

@Bibyutatsu
Copy link

Hi, how can I get the mapping for my test set ?
It contains some images of handwriting and I want to know which cluster or location it belongs to.

@Dotori-HJ
Copy link
Owner

You can choose the closest one by comparing the weights of trained som with the value of your test data.

probably, pairwise distance will help you.

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

4 participants