train_model5_inner_fold: Train model 5 - process the inner fold

View source: R/train_model5.R

train_model5_inner_foldR Documentation

Train model 5 - process the inner fold

Description

Train model 5 - process the inner fold

Usage

train_model5_inner_fold(
  outer_train,
  response_name,
  random_state,
  inner_cv_folds = 5,
  calibration_youden_index_threshold = 0.9,
  calibration_lambda_min_ratio = 1e-06,
  rf_grid = NULL,
  verbose = TRUE,
  ...
)

Arguments

outer_train

a data.frame of one fold of training set during nested cross-validation.

response_name

column name of the response.

random_state

random seed.

inner_cv_folds

inner cross-validation fold number.

calibration_youden_index_threshold

a float of Youden index threhold. Default to 0.9.

calibration_lambda_min_ratio

see lambda.min.ratio of glmnet. Default to 1e-6.

rf_grid

A data frame with possible tuning values. See train.

verbose

A bool.

Value

a list of two models of random forest and calibration model respectively.


markgene/yamatClassifier documentation built on Oct. 14, 2024, 2:36 a.m.