how to generate indices for the training data for all the possible combinations in leave n out cross validation?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am planning on doing a leave n out cross validation. I would like to extract indices from the given data for all the possible combinations of leave n out process. For ex:- if I have 49 data points. and I do leave one out. Then the final outcome should have 49!/(48!*1!)=49 combinations of indices in this process. Is there a matlab function which would help with this issue?
댓글 수: 0
답변 (1개)
Athul Prakash
2020년 10월 9일
Hi Harshan,
You may use 'cvparition' function with 'leaveout' option specified.
Have a read of the doc:
Hope it helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!