train {FIT} | R Documentation |
Constructs models following a recipe.
Description
Constructs models following a recipe.
Usage
train(expression, attribute, weather, recipe, weight = NULL,
min.expressed.rate = 0.01)
Arguments
expression |
An object that represents gene expression data.
The object can be created from a dumped/saved dataframe
of size |
attribute |
An object that represents the attributes of
microarray/RNA-seq data.
The object can be created from a dumped/saved dataframe
of size |
weather |
An object that represents actual or hypothetical weather data
with which the training of models are done.
The object can be created from a dumped/saved dataframe
of size |
recipe |
An object that represents the training protocol of models.
A recipe can be created using |
weight |
An optional numerical matrix of size This argument is optional for a historical reason, and when it is omitted, all samples are equally penalized. |
min.expressed.rate |
A number used to
A gene with |
Value
A collection of trained models.
Examples
## Not run:
# create recipe
recipe <- FIT::make.recipe(..)
#load training data
training.attribute <- FIT::load.attribute('attribute.2008.txt');
training.weather <- FIT::load.weather('weather.2008.dat', 'weather')
training.expression <- FIT::load.expression('expression.2008.dat', 'ex', genes)
training.weight <- FIT::load.weight('weight.2008.dat', 'weight', genes)
# train models
models <- FIT::train(training.expression,
training.attribute,
training.weather,
recipe,
training.weight)
## End(Not run)