Is there a way to create a custom cvpartition?

조회 수: 14(최근 30일)
Christian
Christian 2021년 6월 14일
댓글: Christian 2021년 10월 13일
Hi,
I'd like you use crossvalidation in a model with a custom set of training/test sample vectors.
To use some of the built-in functionalities of Matlab I'd like to pass the input via the CVPartition Name/Value input parameter. Is there a way to define a custom set of train/test indices using cvpartition?
Thanks,
Christian

채택된 답변

Shraddha Jain
Shraddha Jain 2021년 6월 25일
Hi Christian,
As of now, the functionality to use custom indices in the cvpartition object is not available in the Statistics and Machine Learning toolbox. It might be considered in a future release.
  댓글 수: 3
Christian
Christian 2021년 10월 13일
I had the same thoughts on this. However, I stopped trying to alter the code in cvpartition after a few attempts and ended up in writing a complete custom approach for crossvalidation procedures. In addition to custom indices you're also more flexible with the used metrics and and and...

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

추가 답변(0개)

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by