A Matlab function For Randomly Partitioning Date into Training, Validation and Testing Data
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 (2024). A Matlab function For Randomly Partitioning Date into Training, Validation and Testing Data (https://www.mathworks.com/matlabcentral/fileexchange/48538-a-matlab-function-for-randomly-partitioning-date-into-training-validation-and-testing-data), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Simple, Repeated and Nested Cross-Validation and Bootstrapping fold generation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.