Split the data into 70% training and 30% test in classification learner?

4 views (last 30 days)
I am using classification learner to train my model. Is there a way in classification learner app to split the data into 70% training and 30% for testing in the classification learner app without coding ?

Accepted Answer

Cris LaPierre
Cris LaPierre on 12 Apr 2022
What version of MATLAB are you using? In R2022a, there is an option to set aside a percentage of the data to use as test data.
I'm not sure in what version this was added, but do recall that earlier versions did not have this. In that case, you would need to code your data partion before using the app. When that is the case, use cvpartition.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!