score_fold {martini} | R Documentation |
Take the k-solutions for a combination of hyperparameters, and assign a score to it (the larger, the better).
score_fold(gwas, covars, net, selected, criterion, max_solution = 0.5)
gwas |
A SnpMatrix object with the GWAS information. |
covars |
A data frame with the covariates. It must contain a column 'sample' containing the sample IDs, and an additional columns for each covariate. |
net |
An igraph network that connects the SNPs. |
criterion |
String with the function to measure the quality of a split. |
max_solution |
Maximum fraction of the SNPs involved in the solution (between 0 and 1). Larger solutions will be discarded. |