help in training a nueral network
Afficher commentaires plus anciens
hello; i need to train a feed forward neural network using trainlm ;i used this code but i did not get the result until i used 650 neurons in the hidden layer which is too big , i need some one to help me to reduce this number and get the results
p=[ 28220 22142 28395 23145];
t=[24930 25444 25958 26472];
net=newff(minmax(p),[100,1],{'tansig','purelin'},'trainlm');
%[net,TR] = trainlm(net,Pd,Tl,Ai,Q,TS,VV,TV)
%info = trainlm(code)
net.trainParam.epochs=100
net.trainParam.goal=0.01
net.trainParam.max_fail=1000
net.trainParam.mem_reduc=100
net.trainParam.min_grad=10e-10
net.trainParam.mu=0.0001
net.trainParam.mu_dec=0.001
net.trainParam.mu_inc=100
net.trainParam.mu_max=100e10
net.trainParam.show=25
net.trainParam.time=inf
[net,tr]=train(net,p,t)
y2 = sim(net,p)
thnx
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!