phecap_validate_phenotyping_model: Validate the Phenotyping Model using the Validation Labels

Description Usage Arguments Value See Also

View source: R/utils.R

Description

Apply the trained model to all patients in the validation dataset, and measure the prediction accuracy via ROC and AUC.

Usage

1

Arguments

data

an object of class PhecapData, obtained by calling PhecapData(...)

model

an object of class PhecapModel, obtained by calling phecap_train_phenotyping_model.

Value

An object of class PhecapValidation, with components

method

the method used for model training

train_roc

ROC on training dataset

train_auc

AUC on training dataset

split_roc

average ROC on random splits of training dataset

split_auc

average AUC on random splits of training dataset

valid_roc

ROC on validation dataset

valid_auc

AUC on validation dataset

See Also

See PheCAP-package for code examples.


PheCAP documentation built on Sept. 17, 2020, 5:07 p.m.