Cross validation sets

Creates training/validation bins for cross validation


Updated 19 Mar 2015

View License

Given a number of samples forming an arbitrary dataset, this function creates K sets for training and validation so as that each sample is used once and only once for validation purpose and K-1 times for training purpose.

Cite As

Marco Vannucci (2023). Cross validation sets (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
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