How to define x and y in this neural code ??
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
farzad
am 9 Feb. 2015
Kommentiert: farzad
am 10 Feb. 2015
Hi All
I have this code , but I literally do not know how to work with it , I am not yet familiar so much with neural networks . I'd please ask someone to explain me how to work with it :
clc clear clear all load x load y %normalizing data [xn_tr,xs_tr] = mapstd(x); [yn_tr,ys_tr] = mapstd(y); %% network net=newff(xn_tr,yn_tr,[7 7],{'tansig'},'traingda');%7 hidden tanh layer gradian descent adaptive net.trainParam.epochs =70; net.trainParam.lr = 0.05; net.trainParam.lr_inc = 1.05; %training network net.trainFcn='traingda'; [net,tr] = train(net,xn_tr,yn_tr); %randomizing initial value f weight matrix net = init(net); net.trainParam.show = NaN; u_t=mapstd('apply',x,xs_tr); %simulating output y_hat=sim(net,u_t); %plotting performance plotperform(tr) mse=mse(y-y_hat)
; ; ;;;;;;;;;;;;;;;;;;,;;;;;;;;;;;;;;;;;;;;;;;;;;;
I have an input vector as : [alfa , t, h, dp] and the output is a 6 by 6 matrix
I would like to know first , how to work with the code , to define these inputs , maybe they are the x and y in the code I don't know
and what is the precision of this case, I mean regarding to the ratio of the output parameters to input parameters
thank yo so much
2 Kommentare
Greg Heath
am 9 Feb. 2015
1. When you post code, always format it so that it can be run when cut and pasted into the command line.
2. Also include the performance on one of the MATLAB example datasets.
help nndatasets
doc nndatasets
NEWFF is obsolete. Type the command
ver
to see what version of MATLAB you have. Do you have FITNET (regression) and PATTERNNET (classification)? Type
help fitnet
doc fitnet
etc
Akzeptierte Antwort
Greg Heath
am 10 Feb. 2015
I don't recommend that code. Use FITNET or PATTERNNET.
The documentations and trivial examples are readily available using the help and doc commands.
Additional practice datasets are available via
help datasets
doc datasets
Less trivial examples are obtained via NEWSGROUP or ANSWER searches.
Since you are going to spend a nontrivial considerable amount of time, don't waste it
Greg
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!