Contents

fitnet

Function fitting neural network

Syntax

fitnet(hiddenSizes,trainFcn)

Description

Fitting networks are feedforward neural networks (feedforwardnet) used to fit an input-output relationship.

fitnet(hiddenSizes,trainFcn) takes these arguments,

hiddenSizes

Row vector of one or more hidden layer sizes (default = 10)

trainFcn

Training function (default = 'trainlm')

and returns a fitting neural network.

Examples

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)
perf =

   1.4639e-04

Was this topic helpful?