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?

回答(1 个)

Athul Prakash
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!

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by