predict.consensus.subclass: sub-classify a subset of samples belonging to a class

View source: R/classifier_model_summary.R

predict.consensus.subclassR Documentation

sub-classify a subset of samples belonging to a class

Description

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

Usage

## S3 method for class 'consensus.subclass'
predict(predicted, target_column, subclassify, submodel, data)

Arguments

predicted

a table where each rows is predicted outcomes of a sample, i.e. outcome of a predict... function

target_column

which column to look for class label

subclassify

a class to subclassify

submodel

a list of models, 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

Value

amended predicted table with subclass labels


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