score_fold: Score the solutions of a k-fold

View source: R/scones.R

score_foldR Documentation

Score the solutions of a k-fold

Description

Take the k-solutions for a combination of hyperparameters, and assign a score to it (the larger, the better).

Usage

score_fold(gwas, covars, net, selected, criterion, max_prop_snp)

Arguments

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_prop_snp

Maximum proportion of SNPs accepted in the model (between 0 and 1). Larger solutions will be discarded.


hclimente/martini documentation built on Feb. 26, 2024, 6:23 p.m.