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

phecap_validate_phenotyping_model(data, model)

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.