Significance of cross-validation in tuning weights in CNN

조회 수: 3 (최근 30일)
Venkat
Venkat 2018년 4월 30일
댓글: Venkat 2018년 5월 6일
Hi ML experts,
In MATLAB, the dataset is divided into training and validation data using splitEachLabel. The training data is used to train the CNN model and tune its weights in such a way that the error is minimal.
Can anyone please tell me the whether the inbuilt validation that happens during the CNN training has any role towards fine-tuning the filter weights? Does it make any difference or is it just to see how well our model is generalized before we do the actual testing?

채택된 답변

Prajit T R
Prajit T R 2018년 5월 2일
Hi Venkat
The validation set is separate from the training set, and hence they do not influence the filter-weights.
The validation data is used to test the accuracy of the model and help you decide whether you have to change the hyper-parameters or not. Basically, it is a method to determine the effectiveness of the actual model before the actual testing takes place.
This is a recommended practice, because in its absence, the model would be highly sensitive to the training data.
Hope this helps.
Cheers.
  댓글 수: 3
Greg Heath
Greg Heath 2018년 5월 3일
In particular, if the validation performance decreases for 6 (default but adjustable) continuous epochs, training will stop.
Hope this helps.
Greg
Venkat
Venkat 2018년 5월 6일
Hi Greg,
So Validation also help in early stopping, correct?
Thanks

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

추가 답변 (0개)

카테고리

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