Question: MATLAB : Partition the dataset into 3 groups:80% for training and cross validation (to be split later) and 20%for testing. Hint: use cvpartition with the

MATLAB: Partition the dataset into 3 groups:80% for training and cross validation (to be split later) and 20%for testing. Hint: use cvpartition with the 'holdout' option,holding out 20% of the dataset. Call your variables dataTrain(173-by-4000), grpTrain (173-by-1), dataTest (43-by-4000), andgrpTest (43-by-1).

Variables Value

grp 216x1 cell

obs 216x4000 single

What i have so far, unsure if this is right, any help would beappreciated, keep in mind im using MATLAB

holdoutCVP = cvpartition(grp,'holdout',56);

dataTrain = obs(holdoutCVP.training,:);

grpTrain = grp(holdoutCVP.training);

Step by Step Solution

3.47 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It looks like you are on the right track Here is how you can complete the code to split your dataset ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!