How to achieve good results in MLP
Show older comments
Hi,
I am trying to implement neural network for my speech matching project.
There are 12 feature per sample so,I have input feature matrix of 12*54.
Number of classes is 6 so size of Output matrix is 6*54.
My code is as under
[Pr,Pc] = size(P);
out=9;
T=zeros(6,54);
for i=1:6
T(i,(((i-1)*9)+1):out)=1;
out= out+9;
end
[Tr,Tc] = size(T);
Neq=Tc*Tr;
L1=(Neq-Tr)/(Pr+Tr+1);
L1=floor(L1);
net0to9 = newff(minmax(P),[L1 Tr],{'logsig' 'logsig'},'traingdx');
net0to9.performFcn = 'mse';
net0to9.trainParam.goal =mean(var(T))/100;
net0to9.trainParam.show = 20;
net0to9.trainParam.epochs =1200; %I have tried many different no. of epochs
[net0to9,tr,Y,E] = train(net0to9,P,T);
When I train the network it sometimes reach to maximum goal but when i train it again with same parameters it reaches to maximum epoch. But the results are almost same. what does that mean?
Can anyone help me specifying epochs parameter?
The results are close to Target output when I test using
x = sim(net0to9,P);
but it does nto give good results at all when i test on some new data.
Can anyone help???
Thanks in advance.
Accepted Answer
More Answers (1)
Greg Heath
on 3 Dec 2011
0 votes
help mapstd
doc mapstd
type mapstd
Hope this helps
Greg
Categories
Find more on Deep Learning Toolbox 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!