Generates Cross Validation Input Matrices and Output Vectors for training and testing, where number of folds in cross validation is user defined.
CrossValidation(X, Y, F)
M x N Input matrix, M is the number of samples and N is the number of features
output response as column vector
Number of Folds
List with the following components:
List of matrices where each matrix contains a fold of Cross Validation Training Data, where the number of matrices is equal to F
List of matrices where each matrix contains a fold of Cross Validation Testing Data, where the number of matrices is equal to F
List of matrices where each matrix contains a fold of Cross Validation Training Output Feature Data, where the number of matrices is equal to F
List of matrices where each matrix contains a fold of Cross Validation Testing Output Feature Data, where the number of matrices is equal to F
Index of Different Folds. (e.g., for Sample Index 1:6 and 3 fold, FoldedIndex are [1 2 3 4], [1 2 5 6], [3 4 5 6])