predict.consensus: apply a list of models to a set of samples

View source: R/classifier_model_summary.R

predict.consensusR Documentation

apply a list of models to a set of samples

Description

returns a table where each rows is predicted outcomes of a sample, by applying predictive models

Usage

## S3 method for class 'consensus'
predict(models, data)

Arguments

models

a list of models which is an outcome of cv_loop_train_iter or cv_train_final, a model trained for a class

dd

input matrix, of dimension nobs x nvars; each row is an observation vector. Since this is an input to glmnet, it should be the format that can be used with glmnet

Value

a table where each rows is predicted outcomes of applying predictive models to a sample


skimlab/CCSBUtils documentation built on March 30, 2022, 4:52 a.m.