mlFit: Caret model fitting

mlFitR Documentation

Caret model fitting

Description

Trains selected machine learning model from features

Usage

mlFit(
  dt,
  groupvar,
  method,
  metric = "Accuracy",
  cvmethod = "loo",
  kfolds = 10,
  ntimes = 5,
  preproc = c("center", "scale"),
  tlength = 20,
  ...
)

Arguments

dt

A SummarizedExperiment or ExpressionSet object

groupvar

A numeric or string indicating the variable from the phenodata to use for grouping (must be a factor of length two)..

metric

A string with the metric to compute for each training step (see ?train for more details)

cvmethod

A string indicating de crossvalidation method "loo" for leave one out.

ntimes

Number of partition to create

preproc

A string vector with pre-processing options. See ?train for more details.

filenum

An optional numeric vector indicating the files to plot

kfold

Number of folds for k-fold crossvalidation

tlenght

The granularity of the training parameters

Value

A train object

Author(s)

Jordi Rofes Herrera


jordirofes/OmniOmics documentation built on Nov. 22, 2022, 5:46 a.m.