How to specify the number of Validation data in the Classification Learner?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nazila Pourhajy
le 12 Oct 2021
Commenté : Nazila Pourhajy
le 14 Oct 2021
Hi everyone.
I have a dataset with 1000 samples and I want to have 750 samples for training, 150 samples for validation and 100 samples for testing. How can I set up 150 samples for validation data with Classification Learner app? please guide me.
0 commentaires
Réponse acceptée
Image Analyst
le 12 Oct 2021
First, put only 900 samples into your predictor table (not all 1000). Maybe use randsample(). So you'll have a tPredictor table with 900 rows, and a tTest table with 100 rows. Now you have 900 observations for training and you want 750 of those for training the model and, 150 of them for validation.On the Start New Session window, Select the "Holdout Validation" radio button and pick 150/900 which is 16 or 17%. I presume you know what to do after that.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Classification Learner App dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!