How can I partition the data to training (70%) testing (20%) & validation (10%) such that mean & SD of each subsets same?

조회 수: 7 (최근 30일)
I am trying to partition my database to training, testing and validation. However, the commands 'cvpartition' allows only training and testing. Also the mean and SD of partitioned data is not consistent.

답변 (1개)

Pratham Shah
Pratham Shah 2023년 4월 27일
Hello Srinivas!
You haven't mentioned with what kind of database you are working with. However if the data is related to image, you can try using 'spliteachlabel' function. Also to get 3 partitions instead of two you can follow this:
Make one partition of (80%-20%) and then you can divide the partition with 80% with (90%-10%) ratio.
Hope this helps :)
  댓글 수: 1
Srinivas Alagesan
Srinivas Alagesan 2023년 4월 28일
Hi Pratham,
Thanks for your response. But I am dealing with numeric database having 11 features (input) and one output.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Pattern Recognition and Classification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by