Using saved neural network on different size input

조회 수: 5 (최근 30일)
Richard Haney
Richard Haney 2018년 5월 14일
편집: Greg Heath 2018년 5월 15일
Hello,
I am new to MATLAB Neural Networks and have successfully trained and saved a network using input with 100 entries and associated targets. I would like to use this trained network with a smaller number of inputs, say 15 inputs - when I try I get the following error: " Input data sizes do not match net.inputs{1}.size"
I am pretty sure this is because the network was trained on different number of elements - is there a way to use my previously trained network on the new input size, or will I have to retrain for the new size?
Thank you in advance for any help/hints.

채택된 답변

Greg Heath
Greg Heath 2018년 5월 15일
편집: Greg Heath 2018년 5월 15일
The previous answer is not correct.
The topic of removing inputs that are correlated with other inputs is not trivial.
Unfortunately, ignoring features after training to just eliminate their influence is not effectively accomplished by just zeroing out the respective inputs.
If the input to be zeroed out is not orthogonal to the other inputs, the optimal approach is to COMPLETELY retrain the net from scratch.
However, very often the suboptimal choice of continued training after the removal is used.
I posted one or more examples using the BIOID dataset. Check BOTH tHe NEWSGROUP and ANSWERS.
Hope this helps.
Thank you for formally accepting my answer
Greg

추가 답변 (1개)

Ameer Hamza
Ameer Hamza 2018년 5월 14일
편집: Ameer Hamza 2018년 5월 14일
A particular network architecture corresponds to a particular input and output mapping. The input to neural network represents the features which you are using for classification. Decreasing the number of input does not make much sense. Are trying to ignore some features? In that case, convert 15 element vector to 100 element vector by adding 85 zeros. The feature vector must remain of the same size, as used at the time of training.
  댓글 수: 1
Richard Haney
Richard Haney 2018년 5월 14일
Thank you for the response. I had a feeling that it had to be of the same size/dimension due to training.

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

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by