Skip to content

Using ReLu as an Option instead of Sigmoid #11

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

Open
wants to merge 45 commits into
base: main
Choose a base branch
from

Conversation

Nereuxofficial
Copy link
Collaborator

@Nereuxofficial Nereuxofficial commented Oct 3, 2021

This is more of a proof of concept since in order for it to get merged it would have to be optional, i think it's a nice idea since it would be much faster. You can also try it out using my flappy bird for or just replace the version with { git = "https://github.com/Nereuxofficial/neat-gru-rust"} in another project

Using Cargo criterion and looking at the generated HTML pages you can also see the performance difference between sigmoid and ReLu with nice charts.

@sakex
Copy link
Owner

sakex commented Oct 4, 2021

@Nereuxofficial Thanks it looks good. I will run some tests to see if it impacts my results. I keep you posted!

@sakex
Copy link
Owner

sakex commented Oct 4, 2021

@Nereuxofficial A good way to make it optional would be to have a trait NeuronActivation so we could have struct NeuralNetwork<N: NeuronActivation>

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

Successfully merging this pull request may close these issues.

2 participants