R/utility.R

build_fold_matrix.Rd

Title

build_fold_matrix(X, K)

An adjacency matrix

An integer, the number of folds

A matrix of the same size than X with class integer as coefficient