Clarification on the self.update function?
Closed this issue · 2 comments
ytl41 commented
Hi, i have an issue where by i run the self.update function and it turns my som into a none type object, may i clarify the usage of the function?
Here is what i wrote:
X_train_som, X_test_som, y_train_som, y_test_som = train_test_split(data_som, som_class, test_size= 0.3, shuffle= False)
starting_som_weights = som.get_weights().copy()
w= som.winner(X_train_som[0])
som = som.update(starting_som_weights, w, 1, 100)
Thanks!
JustGlowing commented
The update method doesn't return anything. Just call it without overwriting
anything.
…On Sat, Jan 7, 2023, 17:28 Yan Tianlu ***@***.***> wrote:
Hi, i have an issue where by i run the self.update function and it turns
my som into a none type object, may i clarify the usage of the function?
Here is what i wrote:
X_train_som, X_test_som, y_train_som, y_test_som =
train_test_split(data_som, som_class, test_size= 0.3, shuffle= False)
starting_som_weights = som.get_weights().copy()
w= som.winner(X_train_som[0])
som = som.update(starting_som_weights, w, 1, 100)
Thanks!
—
Reply to this email directly, view it on GitHub
<#155>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFTNGN5FF2OSCWIW6GSX4DWRGRU3ANCNFSM6AAAAAATUB6TO4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
ytl41 commented
ah i see ok thanks!