필터 지우기
필터 지우기

how to split the dataset into four different variables

조회 수: 2 (최근 30일)
uma
uma 2022년 6월 2일
댓글: dpb 2022년 6월 2일
As we can see from the below code we have divided the data into four varaibles.now my question is how to divide the data into four variables having first dimension same like idxTrain and traindata should have first dimension same and idxtest and test data should have first dimension same.
Thank you.
cv = cvpartition(2310, 'KFold', 10);
idxTrain = training(cv, 1);
idxTest = test(cv, 1);
traindata = data(idxTrain, :);
testdata = data(idxTest, :);
  댓글 수: 1
dpb
dpb 2022년 6월 2일
I don't understand the questioni??? Please explain precisely what you mean/want. Reason behind the question might help to add some context.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by