| predict {FIT} | R Documentation | 
Predicts gene expressions using pretrained models.
Description
Predicts gene expressions using pretrained models.
Usage
predict(models, attribute, weather)
Arguments
| models | A list of trained models for the genes of interest. At the moment the collection of trained models returned
by  | 
| 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 predictions of gene expressions are made.
The object can be created from a dumped/saved dataframe
of size  | 
Value
A list of prediction results as returned by the models.
Examples
## Not run: 
# prepare models
# NOTE: FIT::train() returns a nested list of models
#   so we have to flatten it using FIT::train.to.predict.adaptor()
#   before passing it to FIT::predict().
models <- FIT::train(..)
models.flattened <- FIT::train.to.predict.adaptor(models)
# load data used for prediction
prediction.attribute  <- FIT::load.attribute('attribute.2009.txt')
prediction.weather    <- FIT::load.weather('weather.2009.dat', 'weather')
prediction.expression <- FIT::load.expression('expression.2009.dat', 'ex', genes)
prediction.results <- FIT::predict(models.flattened,
                                   prediction.attribute,
                                   prediction.weather)
## End(Not run)