How to define x and y in this neural code ??
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Greg Heath
2015-2-9
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
采纳的回答
Greg Heath
2015-2-10
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!