finding optimal neural network architecture using genetic algorithms
3 views (last 30 days)
Show older comments
Hello!
I am working on a project and i need to use genetic algorithm to find number of neurons and hidden layers for neural network. I dont know how i can do it. Can you help me for code. If someone can share a code for me, i will be glad.
0 Comments
Answers (1)
Greg Heath
on 25 Feb 2019
Edited: Greg Heath
on 25 Feb 2019
0. The genetic approach is a waste of time. It takes too long.
1.Typically, a single hidden layer is sufficient.
2. Minimize the number of hidden nodes by trial and error using a double loop:
a. Outer loop over No. of hidden nodes
b. Inner loop over No. of random initial weight values
3. If you must use genetic, search BOTH the NEWSGROUP and ANSWERS using
greg genetic neural
Hope this helps.
Greg
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!