MATLAB : Partition the dataset into 3 groups:80% for training and cross validation (to be split later)
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 '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);
Essentials of Business Analytics
ISBN: 978-1285187273
1st edition
Authors: Jeffrey Camm, James Cochran, Michael Fry, Jeffrey Ohlmann, David Anderson, Dennis Sweeney, Thomas Williams