predict.type: predict outcomes of observations in data using *selected...

View source: R/classifier_model_summary.R

predict.typeR Documentation

predict outcomes of observations in data using *selected features*

Description

predict outcomes of observations in data using *selected features*

Usage

## S3 method for class 'type'
predict(model, data, type = "raw")

Arguments

model

a CV trained model, an output of cv_loop_train_iter

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

type

'raw' (default) or 'prob'

Value

a named vector, either outputs class labels ('raw) or probability tables, a column for each class label ('prob')


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