how to do 5 fold cross-validation for regression problem?

4 ビュー (過去 30 日間)
Prashant Rajbhandari
Prashant Rajbhandari 2018 年 10 月 5 日
回答済み: ahmed nebli 2018 年 10 月 5 日
want to break a simple dataset such as bodyfat_dataset into 5 folds. then use the indices to perform training and testing of the dataset using fitnet.

回答 (1 件)

ahmed nebli
ahmed nebli 2018 年 10 月 5 日
u have to use cvpartition like this exapmple kf=5; c = cvpartition(size(data.label,1),'KFold',kf);
u can find more information about cvpartition here https://www.mathworks.com/help/stats/cvpartition.html

カテゴリ

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by