How to divide 3-5 group dataset?

1 次查看(过去 30 天)
Hello, my project is about sign recognition. My dataset will about 50 images for each 26 alphabet. I want to divide it to be 3 or 5 group. Can you advice me how to do it? Thank you.

采纳的回答

KSSV
KSSV 2018-7-11
编辑:KSSV 2018-7-11
Decide the number of elements in each group.
G1 = 10; G2 = 10 ; G3 = 30 ; % three groups
N = 50 ; % 50 images
idx = 1:N ;
C1 = randsample(idx,G1) ; % group 1
idx = setdiff(idx,C1) ;
C2 = randsample(idx,G2) ; % group 2
C3 = setdiff(idx,C2) ;

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by