How could I optimize structure of ANN using GA?
1 次查看(过去 30 天)
显示 更早的评论
I have written matlab code as follows:
inputs = X(:,:)'; five neurons for input targets = y(:,:)'; one neuron for output
net=newff(minmax(inputs),targets, (Number of Neurons in Hidden Layer),{'tansig','purelin'},'trainlm');
[net,tr]=train(net,inputs,targets); and ........
I want to find the number of neurons in the hidden layers. I have always used trail an errors method to find the must appropriate numbers of neurons. I wonder if any one could help me to find this number using GA.
Cheers Saman
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!