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.

 Accepted Answer

Yes. The one that comes to mind is cvpartition.

1 Comment

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

Sign in to comment.

More Answers (0)

Products

Release

R2021a

Asked:

on 10 Nov 2021

Commented:

on 15 Nov 2021

Community Treasure Hunt

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

Start Hunting!