You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This function randomly partitions data into training, validation and testing data using Cross Validation. Partitioning data in this manner is commonly used for determining the performance of algorithms with free parameters. Training data is commonly used to train the system, the optimum value for the free parameters is determined using validation data. Finally the results of the algorithm are determined using testing data. Matlab has a cross validation but I find it hard to use so I wrote my own. An example determining the optimum kernel with Support vector machines is used. Contact me if you have questions or suggestions
Cite As
Joseph Santarcangelo (2026). A Matlab function For Randomly Partitioning Date into Training, Validation and Testing Data (https://uk.mathworks.com/matlabcentral/fileexchange/48538-a-matlab-function-for-randomly-partitioning-date-into-training-validation-and-testing-data), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Simple, Repeated and Nested Cross-Validation and Bootstrapping fold generation
General Information
- Version 1.2.0.0 (499 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
