read_lambda_sequence_from_multiSnpnetResults: Read the lambda sequence from the initial fit with a...

View source: R/functions.R

read_lambda_sequence_from_multiSnpnetResultsR Documentation

Read the lambda sequence from the initial fit with a validation set

Description

For the path to a multiSnpnet results directory (saved from a multiSnpnet run with a validation set), identify the last "previous" iteration, identify the best lambda based on the validation set AUC, and load the lambda sequence stored in the RData file and return the lambda sequence. This is useful for performing a "refit" using a combined set of training + validation set.

Usage

read_lambda_sequence_from_multiSnpnetResults(
  multiSnpnetResults,
  lambda_idx = NULL
)

Arguments

lambda_idx

The lambda index. If not specified, we call find_best_lambda_index()

results_dir

The results directory

Value

A lambda sequence


junyangq/multiSnpnet documentation built on Oct. 19, 2023, 8:22 p.m.