how to divide data set randomly into training,t​esting,val​idation data set?

Hello guys, I have a dataset of a matrix of size 116*116*45 type double and I want to divide it randomly into 3 subsets training,testing and cross-validation sets.
how to make it randomly generated everytime it run?
can anyone help me?

回答 (1 件)

Image Analyst
Image Analyst 2019 年 11 月 28 日

0 投票

Try randsample() or randperm().

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

質問済み:

2019 年 11 月 28 日

回答済み:

2019 年 11 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by