Is there a way to create a custom cvpartition?

9 ビュー (過去 30 日間)
Christian 2021 年 6 月 14 日
コメント済み: Christian 2021 年 10 月 13 日
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?


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 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 件)


Help Center および File ExchangeGaussian Process Regression についてさらに検索




Community Treasure Hunt

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

Start Hunting!

Translated by