필터 지우기
필터 지우기

How do I partition my data into XTrain and YTrain with Code.

조회 수: 2 (최근 30일)
ikeuwanuakwa
ikeuwanuakwa 2020년 3월 31일
댓글: Adam Danz 2020년 4월 22일
I want to learn how to partition data into XTrain and YTrain with code.
I usually do it manually, but I want to learn how to assign the last Row or Column as YTrain and the remaining as XTrain.
for example, I have 10 variables and I want to select the variable 1 - 9 as XTrain and 10 as YTrain
  댓글 수: 5
Adam Danz
Adam Danz 2020년 4월 22일
Glad I could help!
Worthy of mentioning: cvpartition(), although it may not be useful for this particular problem based on your description.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by