Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
ikeuwanuakwa
ikeuwanuakwa le 31 Mar 2020
Commenté : Adam Danz le 22 Avr 2020
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 commentaires
ikeuwanuakwa
ikeuwanuakwa le 22 Avr 2020
Thank you
Adam Danz
Adam Danz le 22 Avr 2020
Glad I could help!
Worthy of mentioning: cvpartition(), although it may not be useful for this particular problem based on your description.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by