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-xmin) + ymin; THANKS
Mostrar comentarios más antiguos
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
Más respuestas (0)
Categorías
Más información sobre Discriminant Analysis en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!