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 views (last 30 days)
[x,t] = simplefit_dataset;
net = feedforwardnet(10);
net = train(net,x,t);
view(net)
y = net(x);
perf = perform(net,y,t)

Answers (1)

Walter Roberson
Walter Roberson on 7 Feb 2017
"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 Comment
Greg Heath
Greg Heath on 7 Feb 2017
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

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!