Using 5-fold cross validation with neural networks
이전 댓글 표시
I am trying to use k-fold with my neural networks to compare them with their 3 way split equivalents. I have a 150x4 dataset and since it is a very small amount I am trying to see whether 5-fold would allow the ANN to give better results since if I understood correctly Matlab will then pass 2 training sets 2 testing and a validation containing the respective number of rows after sorting the data randomly.
I have been going through some code examples however every time I try and implement a different example (from matlab or other websites) I either get an error using horzcat "Dimensions of matrices being concatenated are not consistent." or it doesn't work, which isn't making any sense since all 4 inputs and the output have 150x1 structure. I have tried applying k-fold to the individual columns (imported as a numeric matrix) and also as a collective matrix however all I get in the workspace are a testIdxs, a trainIdxs a and a k and an "Index exceeds matrix dimensions" in the command window
Can anyone explain how this needs to be done or share a link where k-fold is done on a dataset and then passed to a neural network for training?
채택된 답변
추가 답변 (1개)
Greg Heath
2015년 4월 27일
You probably just need to transpose your input and target matrices. However, to check previous posts consider
ANSWERS Hits
greg neural crossvalidation 36
greg neural cross-validation 61
greg neural cross validation 67
NEWSGROUP Hits
greg neural crossvalidation 32
greg neural cross-validation 55
greg neural cross validation 72
Additional references can be obtained by removing one or both of the leading search words
Hope this helps.
Greg
댓글 수: 2
Anthony Scicluna
2015년 5월 4일
편집: Walter Roberson
2016년 6월 21일
Yogini Prabhu
2021년 5월 31일
those pages are not available now
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!