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

Reusing code vectors/ prototypes in SOMBrero #4

Closed
SnehaVidekar opened this issue Apr 15, 2021 · 2 comments
Closed

Reusing code vectors/ prototypes in SOMBrero #4

SnehaVidekar opened this issue Apr 15, 2021 · 2 comments

Comments

@SnehaVidekar
Copy link

trainSOM() takes proto0 parameter as input. Can prototype from already trained SOM be passed while training new data?

Trying to reuse the code vector/prototype. I am trying below code :

Brero1.som <- trainSOM(x.data = DATA, nb.save=2,
                      dimension = c(5,5),
                       radius.type="letremy",
                       dist.type="letremy",
                         maxit=maxit_var,
                       eps0=0.0100000,init.proto="random", scaling ="unitvar")

Brero2.som <- trainSOM(x.data = New_DATA, nb.save=2,
                       dimension = c(5,5),
                       radius.type="letremy",
                       dist.type="letremy",
                         maxit=maxit_var,proto0=Brero1.som$prototypes
                       eps0=0.0100000,init.proto="random", scaling ="unitvar")

Error: Error in run.trainSOM(x.data, ...) : initial prototypes dimensions do not match SOM parameters: in the current SOM, prototypes must have rows and columns

I have tried different sizes for the prototypes. Has anyone tried this proto0 ??

tuxette pushed a commit that referenced this issue Apr 15, 2021
@tuxette
Copy link
Owner

tuxette commented Apr 15, 2021

Thanks for the bug report. I found the error and posted a bug fix on github (see previous comment). I will try to shortly package this bug fix in a new release and add tests to automatically check this feature. Meanwhile, feel free to use the github version. Thank you for your help.

@tuxette tuxette closed this as completed Apr 15, 2021
@SnehaVidekar
Copy link
Author

Thanks for the bug report. I found the error and posted a bug fix on github (see previous comment). I will try to shortly package this bug fix in a new release and add tests to automatically check this feature. Meanwhile, feel free to use the github version. Thank you for your help.

Thank you. It is working now.

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