How to make my Excel file Random?

1 回表示 (過去 30 日間)
TABOUNI Khadidja
TABOUNI Khadidja 2017 年 4 月 3 日
コメント済み: KSSV 2017 年 4 月 5 日
Hello! my excel file contains data set 3617*2 the data set should be divided in to 2 the first data should be 2/3 from the 3617 sets each one has to have random rows , then i should use every set in testing and training for error reports .. I'm confused and new, can somebody help me?

回答 (1 件)

KSSV
KSSV 2017 年 4 月 4 日
data = rand(3617,2) ;
[m,n] = size(data) ;
idx = round(2/3*m) ;
train_data = data(1:idx,:) ;
test_data = data(idx+1:end,:) ;
  2 件のコメント
TABOUNI Khadidja
TABOUNI Khadidja 2017 年 4 月 4 日
Hello Sir! Thank you for you help! Can I ask you something else? Bout the traning?
KSSV
KSSV 2017 年 4 月 5 日
I am not expert in NN. Accept this answer and pose a different question for that. some other expert will answer your query.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by