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

View source: R/classifier_model_summary.R

predict.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 'multiClass'
predict(models, dd, type = "raw")

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

type

either "raw" or "prob", for the number/class predictions or class probabilities, respectively. Class probabilities are not available for all classification models

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.