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

View source: R/classifier_model_summary.R

prediction_tablesR Documentation

predict outcomes of observations in data using *selected features*

Description

predict outcomes of observations in data using *selected features*

Usage

prediction_tables(data, cls, model)

Arguments

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

cls

class labels

model

a CV trained model, an output of cv_loop_train_iter

Value

A list of class (class labels), trained (names of trained samples), row.names (selected features), pred (predicted outcomes), and prob (probabilities of predicted outcomes)


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