Matlab Functions

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

feedforwardnet(hiddenSizes,trainFcn)

Feedforward networks consist of a series of layers. The first layer has a connection from the network
input. Each subsequent layer has a connection from the previous layer. The final layer produces the
network's output.

[net,tr] = train(net,X,T,Xi,Ai,EW) takes

net :New network

tr: Training record (epoch and perf)

net.trainFcn = 'trainlm'

trainlm is a network training function that updates weight and bias values according to Levenberg-
Marquardt optimization. trainlm is often the fastest backpropagation algorithm in the toolbox, and is
highly recommended as a first-choice supervised algorithm, although it does require more memory than
other algorithms.

net.trainFcn = 'trainbr'

[net,tr] = train(net,...)

trainbr is a network training function that updates the weight and bias values according to Levenberg-
Marquardt optimization. It minimizes a combination of squared errors and weights, and then determines
the correct combination so as to produce a network that generalizes well. The process is called Bayesian
regularization.

net.trainFcn = 'trainscg'

[net,tr] = train(net,...)

trainscg is a network training function that updates weight and bias values according to the scaled
conjugate gradient method.

net.trainFcn = 'trainrp'

[net,tr] = train(net,...)

trainrp is a network training function that updates weight and bias values according to the resilient
backpropagation algorithm (Rprop).

perf = mse(net,t,y,ew)

mse is a network performance function. It measures the network's performance according to the mean
of squared errors.

plotperform(TR)

plots the training, validation, and test performances given the training record TR returned by the function
train.

You might also like