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

Add LeakyRelu as an option in MLP nonlinearity #18

Merged
merged 7 commits into from
Nov 8, 2023

Conversation

DrJonnyT
Copy link
Contributor

@DrJonnyT DrJonnyT commented Oct 30, 2023

Implemented in the MLP class, and constructer functions construct_gnp() and construct_agnp(). The nonlinearity argument changes from being a function to being a string that selects a nonlinearity from a predetermined list (currently just ReLU and LeakyReLU)

@wesselb
Copy link
Owner

wesselb commented Nov 8, 2023

Hey @DrJonnyT! Sorry for the delay. :)

Thanks so much for implementing this! I think this looks great. :) Merging right away.

@wesselb wesselb merged commit 887d51b into wesselb:main Nov 8, 2023
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