How to specify the number of Validation data in the Classification Learner?

1 次查看(过去 30 天)
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.

采纳的回答

Image Analyst
Image Analyst 2021-10-12
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Classification Learner App 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by