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

Is there an option to obtain the BMU value directly? #130

Open
akol67 opened this issue Feb 21, 2022 · 1 comment
Open

Is there an option to obtain the BMU value directly? #130

akol67 opened this issue Feb 21, 2022 · 1 comment
Labels

Comments

@akol67
Copy link

akol67 commented Feb 21, 2022

Hi there,

I am trying to use BMU values a metric to classify my data. Features are seismic attributes.
Your function “distance_from_weights” was my first guess but it´s not exporting BMUS directly. We do have to manipulate it to remove the second BMU.

np.argsort(distance_from_weights(data), axis=1)[:, :2] -----> np.argsort(distance_from_weights(data), axis=1)[:, :1]

Do you mind to build that function?

@JustGlowing
Copy link
Owner

JustGlowing commented Feb 22, 2022

Hi there, the method winner returns the coordinates of the winning neuron and you can retrieve its weights using the method get_weights.

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

No branches or pull requests

2 participants