Description Usage Arguments Details Value See Also
This function allows to quantify the performances of a DT model built using the build_DT function, ideally using a different data set than the one used to train the DT.
1 2 3 | calculate_DT_performance(pathDT, testMetrics = NULL,
testPressures = NULL, low = "low", impaired = "impaired",
smoothROC = TRUE)
|
pathDT |
character string, the path where the built models will be saved |
low |
character vectors with the labels of the pressure classes
(in |
impaired |
character vectors with the labels of the pressure classes
(in |
smoothROC |
if TRUE, the ROC curve is passed to smooth to be smoothed. |
The function will calculate the ROC curves (smoothed or not depending on
argument smoothROC
) and the corresponding Area Under the Curve (AUC) for
each of the DT models using (i) the test data set stored with the models
and (ii) a different test data set (provided using testPressures
and
testMetrics
).
a list with two elements:
- AUC
: a data frame with the calculated AUC in both the training and
test data sets;
- ROC
: a list of ggplot objects (one per DT model) containing the ROC
curves
roc build_DT
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.