-
Notifications
You must be signed in to change notification settings - Fork 33
Improvement and feature addition and Update from deprecated libraries to new ones #8
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
base: master
Are you sure you want to change the base?
Conversation
…ad of external crates, bugfixes added L2 reularization replaced sigmoid by ReLU activation
|
Oh sorry, I forgot to add the .trayis.yml. It is in now. |
|
This fork adds L2 regularization and several activation functions to the original crate. Additionally, there are a few minor improvements. Lambda can be set just like the learning rate. The activation functions for hidden and output gets set in NN::new as second and third parameter respectively. |
|
@jackm321 I'd like to see this PR merged. I tried using the nn crate in a WebAssembly project but it failed to build because nn relies on the outdated rustc-serialize package which doesn't compile for WebAssembly (See wasm-bindgen/wasm-bindgen#1488). This change would fix that problem. |
At first, I did not plan to create a pull request and to keep everything clean and abstract. But I think the improvements got really useful, so I decided to clean up and update the doc and README accordingly, but I don't know, if everything is still good enough. If there is something minor not ok, please tell me, so I can fix and you can merge safely.