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

Is it possible to create neural networks in run-time? #81

Open
vincent-hui opened this issue Feb 2, 2019 · 2 comments
Open

Is it possible to create neural networks in run-time? #81

vincent-hui opened this issue Feb 2, 2019 · 2 comments

Comments

@vincent-hui
Copy link

For example, I want to compare the performances of neural networks with different number of hidden layers. Instead of defining neural networks in compile-time, can I create neural networks in run-time by just inputting a list of number of hidden layers from a JSON file to a network generator function ?

@HuwCampbell
Copy link
Owner

HuwCampbell commented Feb 2, 2019

Yes, but it's pretty painful as it's pushing pretty hard against the boundaries of dependent types in Haskell.

One of the tests I have in the test suite is generating random networks (of random shapes), and running reverse automatic differentiation through them as well as numerical differentiation to make sure that they give the same answer. It's essentially the same idea as what you're looking for.

https://github.com/HuwCampbell/grenade/blob/master/test/Test/Grenade/Network.hs

@vincent-hui
Copy link
Author

Thank you for your quick reply. Do you have a plan to implement neural architecture search algorithms?

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

No branches or pull requests

2 participants