-
Notifications
You must be signed in to change notification settings - Fork 5
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
Suggestion of init method #9
Comments
Hi, yes, true, it would be a nice feature. You can already accomplish this by using the low-level API, though I admit it doesn't have the comfort of the high-level API then. To include it in the high-level API is possible but will take a bit of work to do. |
Hi Christoph, I have the same problem. Is there a way that you can guide me on how to initialize an MLP network with weights and activation bias parameters using the low-level API. I could not find it in the RSNNS docs and not in the SNNS 4.1 doc either. Likely, I missed it. I am new to RSNNS (used Siemen's SENN before). I really like your R implementation as it gives the maximum degree of freedom. |
Hi Christoph, I experimented a litte and was able to manipulate the weights of my NN model (CarstensModel) as follows.Not sure if you meant this with low-level Api: |
Sorry, I was wrong that did not work either. |
Hi, did you check the demos included in the R package? Have a look at the irisSnnsR demo, there towards the end you have the training loop. My understanding is that within this loop you want to load new data, right? You should be able to do that with
... the |
Hi Christopher,
Thank you so much!!! I looked at the code and it looks like that this is exactly what I was looking for.
I will try it out, when I am less tired and can focus on not making unnecessary errors.
Sehe gerade, dass Sie auch ein deutscher Expat sind. In diesem Sinne, viele Gruesse aus Kalifornien nach Australien.
Carsten
…------------------
Carsten Lange, Ph.D. Phone: (909) 869 3843
Professor of Economics Fax: (909) 869 6987
Graduate Program Coordinator Email: [email protected]
Department of Economics Home Page: www.cpp.edu/~clange
California State Polytechnic University, Pomona
3801 West Temple Avenue
Pomona, CA 91768
USA
From: cbergmeir [mailto:[email protected]]
Sent: Wednesday, September 06, 2017 7:40 PM
To: cbergmeir/RSNNS <[email protected]>
Cc: Carsten Lange <[email protected]>; Comment <[email protected]>
Subject: Re: [cbergmeir/RSNNS] Suggestion of init method (#9)
Hi, did you check the demos included in the R package? Have a look at the irisSnnsR<https://github.com/cbergmeir/RSNNS/blob/master/RSNNS/demo/mlp_irisSnnsR.R> demo, there towards the end you have the training loop. My understanding is that within this loop you want to load new data, right? You should be able to do that with
patset <- snnsObject$createPatSet(inputs, outputs)
snnsObject$setCurrPatSet(patset$set_no)
...
the fullWeightMatrix and unitBias parameters are only read from the SNNS kernel, not written back, so modifying these should not have any effect.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#9 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AePQqK4jyKL2rFpsEJFb_h7Ben0Cgze3ks5sf1dtgaJpZM4LGnFU>.
|
Ok, I hope it will work. Viele Grüße :) |
It worked well. Thank you so much! One problem I still could not figure out is how to save a weight matrix (including the biases of hidden neurons). You mentioned it would be possible in the low-level Api. I could not find any command in the RSNNS and the SNNS documentation. I tried the following: created a new Snns object (mySnnsObject <- SnnsRObjectFactory()) and tried to copy the complete snns object (mySnnsObject =SnnsObject). However this only sets a pointer to the new object (i.e. when I change SnnsObject then mySnnsObject will cange also. Any suggestions? Thank you so much in advance. |
I'm not so sure what you want to do...
Now, you can deep-copy
To verify the result:
|
Dear Christoph,
I would like suggest a feature to add in your great package, that is cruelly missing in R version.
It would be nice to propose an initialization method copying the weights of an already trained network, that would allow to iteratively train a network with new examples.
Or even better: an input parameter in high level functions (mlp, elman ...) to pass an already existing network to update.
Thank you for telling me if i am missing this functionality. I actually didn't find a way to achieve this browsing R documentation of RSNNS.
Best Regards,
Nicolas
The text was updated successfully, but these errors were encountered: