How could I optimize structure of ANN using GA?

1 回表示 (過去 30 日間)
saman abdanan
saman abdanan 2015 年 10 月 9 日
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 件)

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by