How do I partition my data into XTrain and YTrain with Code.
1 次查看(过去 30 天)
显示 更早的评论
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
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 Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!