GeneFuModel: 'GeneFuModel' Constructor Method

Description Usage Arguments Value Examples

View source: R/class-GeneFuModel.R

Description

GeneFuModel Constructor Method

Usage

1
2
3
4
5
6
GeneFuModel(
  trainCohorts = SurvivalExperiment(),
  minDaysSurvived = 365,
  ...,
  randomSeed
)

Arguments

trainCohorts

A CohortList or SurvivalExperiment containing training data for the genefu model. If you don't have training data, but have a trained model this will default to an empty SurvivalExperiment. You can then assign the model using the models setter method.

minDaysSurvived

An integer specifying the minimum days survived to be considered in the 'good' survival prognosis group.

...

Fall through paramater to SurvivalModel constructor.

randomSeed

An integer randomSeed that was used to train the model. Users should specify this when initializing a model to ensure reproducibilty.

Value

A GeneFuModel object, with model parameters in the

Examples

1
2
set.seed(1987)
geneFuModel <- GeneFuModel(randomSeed=1987)

bhklab/PanCuRx documentation built on Dec. 30, 2021, 4:59 p.m.