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

View source: R/fitModels.R

fitSubtypeModelR Documentation

fitSubtypeModel Train a single subtype model using cross validation

Description

fitSubtypeModel Train a single subtype model using cross validation

Usage

fitSubtypeModel(Xs, Ys, breakVec = c(0, 0.25, 0.5, 0.75, 1),
  params = list(max_depth = 2, eta = 0.5, nrounds = 100, nthread = 5,
  nfold = 5), ptail = 0.05)

Arguments

Xs

Gene expression matrix.

Ys

Phenotype vector, multiclass

params

Parameters for xgboost

Value

A list of xgboost classifiers, one for each subtype.

Examples

mods <- fitSubtypeModel(Xs, Ys, params)


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