![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/962070/image.png)
Split the data into 70% training and 30% test in classification learner?
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hadeel H
il 12 Apr 2022
Risposto: Cris LaPierre
il 12 Apr 2022
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 ?
0 Commenti
Risposta accettata
Cris LaPierre
il 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/962070/image.png)
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.
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!