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

How to access _dlabel after training the raw data? #104

Open
xuezhaokun opened this issue Mar 17, 2019 · 3 comments
Open

How to access _dlabel after training the raw data? #104

xuezhaokun opened this issue Mar 17, 2019 · 3 comments

Comments

@xuezhaokun
Copy link

I have a 129 x 4862 data. And I trained it via
som = sompy.SOMFactory.build(data, mapsize, mask=None, mapshape='planar', lattice='rect', normalization='var', initialization='pca', neighborhood='gaussian', training='batch', name='sompy')
som.train(n_job=1, verbose='info')

I thought after training my data, I should get a label for each of my raw data record. I noticed there is _dlabel field in SOM. but when I tried to accessed it always gave me NONE. I am wondering how could I get labels for my raw data after training it.

Thanks

@sevamoo
Copy link
Owner

sevamoo commented Apr 14, 2019

Label comes from the data and initially they are none.
I am not sure from your question, what are you looking for. If you want to find the bmu of each data point, just use project function or fin_k_nodes.

@yasohasakii
Copy link

Hi! Still ambigious about label attr. I want to figure out how to get data label after I did cluster operate because my project is to classify raw data by SOM, thanks!

Label comes from the data and initially they are none.
I am not sure from your question, what are you looking for. If you want to find the bmu of each data point, just use project function or fin_k_nodes.

@Aaron-LHR
Copy link

Hi! Still ambigious about label attr. I want to figure out how to get data label after I did cluster operate because my project is to classify raw data by SOM, thanks!

Label comes from the data and initially they are none.
I am not sure from your question, what are you looking for. If you want to find the bmu of each data point, just use project function or fin_k_nodes.

Hello! Have you solved this problem? Thanks!

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