Function fitting neural network
Fitting networks are feedforward neural networks (feedforwardnet) used to fit an input-output relationship.
fitnet(hiddenSizes,trainFcn) takes these arguments,
Row vector of one or more hidden layer sizes (default = 10)
Training function (default = 'trainlm')
and returns a fitting neural network.
Here a fitting neural network is used to solve a simple problem.
[x,t] = simplefit_dataset; net = fitnet(10) net = train(net,x,t); view(net) y = net(x); perf = perform(net,y,t)