フィルターのクリア

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 件のコメント
ikeuwanuakwa
ikeuwanuakwa 2020 年 4 月 22 日
Thank you
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 Center および File ExchangeSequence 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