create_cv_folds: Create Cross-Validation Folds for a Dissimilarity Matrix
Description
Creates k-fold cross-validation splits from a dissimilarity matrix while maintaining
symmetry. Each fold in the output consists of a training matrix (with some
values masked as NA) and a corresponding ground truth matrix for validation.
A list of length n_folds. Each element of the list is itself a list
containing two matrices: truth (the ground truth for that fold) and train
(the training matrix with NA values for validation).
Arguments
dissimilarity_matrix
The input dissimilarity matrix, which may contain noise.
ground_truth_matrix
An optional, noise-free dissimilarity matrix to be used as the ground truth for evaluation. If NULL, the input dissimilarity_matrix is used as the truth.
n_folds
The integer number of folds to create.
random_seed
An optional integer to set the random seed for reproducibility.