what is the simplefit_dataset in this code??? and how i give the feature extracted value for this code in testing and triaining time???? pls help to solve this?????
6 ビュー (過去 30 日間)
古いコメントを表示
[x,t] = simplefit_dataset;
net = feedforwardnet(10);
net = train(net,x,t);
view(net)
y = net(x);
perf = perform(net,y,t)
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 2 月 7 日
"Function Fitting, Function approximation and Curve fitting.
Function fitting is the process of training a neural network on a set of inputs in order to produce an associated set of target outputs. Once the neural network has fit the data, it forms a generalization of the input-output relationship and can be used to generate outputs for inputs it was not trained on.
simplefit_dataset - Simple fitting dataset."
If you want to measure how long it takes to train the network, then you can use
start_t = tic;
net = train(net,x,t);
train_time_spent = toc(start_t);
This will not tell you how much of the time is spent training and how much is spent testing; I do not think those are measured separately. Though for this network, perhaps
start_t = tic;
y = net(x);
simulate_time_spent = toc(start_t);
might be enough for your purposes.
1 件のコメント
Greg Heath
2017 年 2 月 7 日
See the documentation
help nndata
doc nndata
for a list of all the nndata. If you wish to see them, obtain the trn/val/tst indices from the training record tr
[net tr y e ] = train(net,x,t);
Then you can plot the 3 division subsets of t and y vs x in different colors.
Hope this helps.
Greg
参考
カテゴリ
Help Center および File Exchange で Modeling and Prediction with NARX and Time-Delay Networks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!