Classification Learner App - Custom cross validation grouping

2 ビュー (過去 30 日間)
kevincent
kevincent 2021 年 5 月 27 日
回答済み: Muskan 2024 年 9 月 25 日
I am using the classification learner app - can I can define the grouping for cross validation?
The data set I am using has repeated measures from a number of different subjects. Those repeated measures from within a single subject are not independent and thus should not be randomized to different groups for cross validation. Is it possible to provide such grouping for cross validation with the classification learner app?

回答 (1 件)

Muskan
Muskan 2024 年 9 月 25 日
Hi,
To perform a custom cross validation you can use "cvpartition" to create a custom cross-validation partitioning. You can use the 'Leaveout', 'KFold', or 'Holdout' options, and specify the 'Groups' parameter to ensure that data from the same subject is kept together in the same fold.
You can refer to the following documentation of "cvpartition" for more information: https://www.mathworks.com/help/stats/cvpartition.html
I hope this helps!

カテゴリ

Help Center および File ExchangeClassification Learner App についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by