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?????
조회 수: 10 (최근 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!