Neural Network training and improvement

조회 수: 2 (최근 30일)
belka0011
belka0011 2012년 5월 25일
My aim is to create neural network than will give threshold of distortions visibility after some actions with image. So, what I do, the inputa of net - DCT coefficients and targets maximal thresholds in which distortions aren't visible. I've prerared little collection of inputs-targets, and trying to train NN with help of feedforward function, but net don't want get trained? the graphics of training with differents number of neurons in hidden layer are here - http://www.dropbox.com/gallery/19618569/1/test2?h=849bb1
Help me, what is might be the problem, how to emprove my net? and also I cannot found how I can change the number of output neurons?

채택된 답변

Greg Heath
Greg Heath 2012년 5월 31일
column2 = column1
column 4 = column3 = repmat([1 3 5 7]', N, 1)
Therefore you can make four plots of column5 vs column1 with column3 = constant.
If there is a deterministic trend to the four plots, the design should be straightforward provided your trn/val/tst partition results in three sets with similar dominant characteristics.
Before you design a net that corresponds to all of the column3 values, you might want to look at the four separate nets corresponding to column3 = constant.
Hope this helps.
Greg

추가 답변 (3개)

Greg Heath
Greg Heath 2012년 5월 25일
The number of input and output neurons are automatically determined by CONFIGURE or TRAIN.
Some of the training plots indicate that training, validation and testing data cannot be assumed to be random draws from the same probability distribution.
Hard to say more without more information.
[I N ] = size(x) ?
[ O N ] = size(t) ?
H = Number of hidden nodes?
Relevant code ?
Hope this helps.
Greg
  댓글 수: 1
belka0011
belka0011 2012년 5월 26일
Some troubles was with 14 input nodes - NN was with 13, but now for 4 nodes it's configered correctly.
Sizes: 4 inputs 4 targets
1 hidden layer with 10 neurons.
Code:
net = feedforwardnet(10);
net.trainParam.epochs = 100;
[net, tr] = train(net, InputSet, TargetSet);
graphics:
http://dl.dropbox.com/u/19618569/performance.png - performace graph
http://dl.dropbox.com/u/19618569/regression.png - regression
http://dl.dropbox.com/u/19618569/SET2.xls - target set - 5th column(i.e. 13 targets by 4 items)

댓글을 달려면 로그인하십시오.


anjaneya
anjaneya 2012년 5월 26일
"I've prerared little collection of inputs-targets" ensure that the number of training data-sets are more than the number of parameters of the Neural network(weights and biases)
  댓글 수: 2
belka0011
belka0011 2012년 5월 26일
I hoped that with little collection I'll positive dinamics
anjaneya
anjaneya 2012년 5월 27일
get more training data. plz understand that you need more number of data points than the ANN unknowns(weights and biases).

댓글을 달려면 로그인하십시오.


Greg Heath
Greg Heath 2012년 5월 27일
It is very clear that your training data does not adequately represent the relevant characteristics of your validation and test data. Try multiple designs with different data divisions in addition to different initial weights.
If you will include a text (*.xls=>*.txt) version of the data,I can take a look at it with the traveling laptop I will be using for the next week or so.
Hope this helps.
Greg
  댓글 수: 1
belka0011
belka0011 2012년 5월 28일
data in text format - http://dl.dropbox.com/u/19618569/SET2.txt
first two columns - block position in image
3th and 4th - block DCT position
5th - maximal thresholds in which distortions aren't visible(i.e. targets)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by