Is there any built-in function for splitting the data to training and testing sets ?

Hello Matlab community!
I havan't used Matlab to code machine learning models befor so , i am very familiar with python and sklearn , i just wonder if there is any functions in matlab to split the data randommly into train and test sets.
Thanks in advanced.

 Risposta accettata

Yes. The one that comes to mind is cvpartition.

1 Commento

Thank you so much, even if this is not the exact function i was looking for, but it helped me in my work
i appreciate

Accedi per commentare.

Più risposte (0)

Prodotti

Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by