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 CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by