A Matlab function For Randomly Partitioning Date into Training, Validation and Testing Data

A Matlab function For Randomly Partitioning Date into Training, Validation and Testing Data
783 Downloads
Updated 1 Apr 2015

View License

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
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

put more references

1.1.0.0

Put: your matlab need to have access to the function crossvalind

1.0.0.0