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
Step: 1
It looks like you are on the right track Here is how you can complete the code to split your dataset ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Essentials Of Business Analytics
Authors: Jeffrey Camm, James Cochran, Michael Fry, Jeffrey Ohlmann, David Anderson, Dennis Sweeney, Thomas Williams
1st Edition
128518727X, 978-1337360135, 978-1285187273
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App