cvFitOneModel: cvfitOneModel Train a single subtype model using cross...

View source: R/fitModels.R

cvFitOneModelR Documentation

cvfitOneModel Train a single subtype model using cross validation

Description

cvfitOneModel Train a single subtype model using cross validation

Usage

cvFitOneModel(Xbin, Ybin, params = list(max_depth = 2, eta = 0.5, nrounds
  = 100, nthread = 5, nfold = 5), breakVec = c(0, 0.25, 0.5, 0.75, 1),
  genes)

Arguments

Xbin

Binned and filtered gene expression matrix.

Ybin

Binned phenotype vector.

Value

A single xgboost classifier.

Examples

res0 <- trainDataProc(Xmat, Y, cluster='1')
dat  <- res0$dat
modC1 <- fitOneModel(dat$Xbin, dat$Ybin)


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