Split a data in random partitions
古いコメントを表示
Hi,
I'm trying to split my data in random partition.
I have a code of this type :
rng(1000)
cv = cvpartition(size(my_data,1),'HoldOut',0.4);
idx = cv.test;
dataTrain = split(~idx,:);
dataTest = split (idx,:);
The problem is that it provides me dataTrain as a (0x12)table instead of (1200x12)table.
How can I fix this problem ?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!