cv_loop_train_iter: A function to train a model with CV

View source: R/classifier_train.R

cv_loop_train_iterR Documentation

A function to train a model with CV

Description

A function to train a model with CV

Usage

cv_loop_train_iter(
  ii,
  data,
  cls,
  stratify = NA,
  fitControl,
  resampling_rate,
  n_features,
  filter_method,
  filter_threshold_score,
  filter_threshold_diff,
  filter_direction,
  observation_weights,
  feature_weights
)

Arguments

ii

integer (probably not needed)

data

input matrix, of dimension nobs x nvars; each row is an observation vector. Since this is an input to glmnet, it should be the format that can be used with glmnet

cls

class labels

fitControl

A list of training parameters. See caret::trainControl for detail

resampling_rate

...

n_features

...

filter_method

...

filter_threshold_score

...

filter_threshold_diff

...

filter_direction

...

feature_uniform

...

feature_weighted

...

Value

a trained model - a list of training parameters (see above), fitted model, and selected features


skimlab/CCSBUtils documentation built on March 30, 2022, 4:52 a.m.