MATLAB: How to define error weights in Neural Network

neural networkweighted error

I want to minimize a mean squared weighted deviation in a neural network. The weights are different for each sample.
How can I specify this?
Is it perform(net,t,y,ew)?
ew = [a b c d …] (weight for each sample)

Best Answer

The documentation commands
help train
doc train
yield
[NET,TR] = train(NET,X,T,Xi,Ai,EW)
Hope this helps.
Greg