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

View source: R/classifier_model_summary.R

predict.consensus.multiclassR 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.multiclass'
predict(models, data, final.class = NA, min.prob = 0.25)

Arguments

models

a list of models each of which is an outcome of cv_loop_train

data

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

final.class

the name (column heading) of final class outcomes, majority among multiple classes

min.prob

minimum probability for a sample to be classified to a class (default: 0.25)

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.