score_fold {martini} | R 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(folds, criterion, K, gwas, covars)

### Arguments

`folds` | k-times-d matrix, where k is the number of folds, and d the number of SNPs.
`criterion` | String with the method to use to score the folds.
`K` | Numeric vector of length equal to the number of samples. The elements are integers from 1 to # folds. Indicates which samples belong to which fold.
`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.

[Package martini version 1.6.0 Index]