fitEnsembleModel: fitEnsembleModel Train a single subtype model using cross...

View source: R/fitModels.R

fitEnsembleModelR Documentation

fitEnsembleModel Train a single subtype model using cross validation

Description

fitEnsembleModel Train a single subtype model using cross validation

Usage

fitEnsembleModel(Xs, Ys, n = 5, sampSize = 0.7, breakVec = c(0, 0.25,
  0.5, 0.75, 1), params = list(max_depth = 5, eta = 0.5, nrounds = 100,
  nthread = 5, nfold = 5), ptail = 0.01, numCores = 2)

Arguments

Xs

Gene expression matrix, samples in columns, genes in rows

Ys

Phenotype vector, multiclass

n

Size of the ensember, where each member is a result from fitSubtypeModel

sampSize

proportion of samples to hold back

params

Parameters for xgboost

numCores

number of cores to use, one per ensemble member

dtype

the data type, either continuous values or binary values.

breakvec

the vector of break points if using continuous values

Value

A list of lists of xgboost classifiers

Examples

mods <- fitEnsembleModel(Xs, Ys, n, sampSize, dtype, breakVec, params)


CRI-iAtlas/ImmuneSubtypeClassifier documentation built on Oct. 1, 2022, 10:50 a.m.