Hello I need help with the command mapminmax, since I have configured my premnmx RNA with the comman d but I change it to mapminmax I could adjust the working command y= (ymax-ymin​)*(x-xmin)​/(xmax-xmi​n) + ymin; THANKS

1 visualización (últimos 30 días)
load datoscompletos.txt datoscompletos; p=datoscompletos(:,1:4)'; t=datoscompletos(:,5:6)'; [pn,minp,maxp,tn,mint,maxt] = premnmx(p,t); pnew=pn; tnew=tn; net = newff(minmax(pnew),[10 20 15 20 2],{'tansig' 'tansig' 'tansig' 'tansig' 'purelin'}); net.trainParam.show = 40; net.trainParam.lr = 0.1; net.trainParam.epochs = 100; net.trainParam.goal = 0.01; net.trainParam.min_grad = 0.0000001; net = train(net,pnew,tnew); Yred = sim(net,pnew); save RED net minp maxp mint maxt
Whit command mapminmax
load datoscompletos.txt datoscompletos; p=datoscompletos(:,1:4)'; t=datoscompletos(:,5:6)'; [p1,ps1]=removeconstantrows(p) [pn,ps2] = mapminmax(p); [tn,ts] = mapminmax(t); pr=minmax(pn); s2=size(tn,1); net = newff(pr,[10 20 15 20 2],{'tansig' 'tansig' 'tansig' 'tansig' 'purelin'}); net.trainParam.show = 40; net.trainParam.lr = 0.1; net.trainParam.epochs = 100; net.trainParam.goal = 0.01; net.trainParam.min_grad = 0.0000001; net = train(net,pn,tn); Yred = sim(net,pn); a = mapminmax('reverse',Yred,ts);
THANKS

Respuesta aceptada

Greg Heath
Greg Heath el 14 de Mayo de 2013
There are two versions of NEWFF. Both are obsolete. What version of MATLAB and NNTBX are you using? Use the command
ver
You are making a simple design complicated by not using the defaults given in the help documentation
help newff; doc newff;
Try the codes in the help and doc demos. Then try with your data.
Search for posted codes in NEWSGROUP and ANSWERS by searching with
newff greg
Hope this helps.
Thank you for accepting my answer
Greg

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by