calculate_DT_performance: Calculate the performances of a DT

Description Usage Arguments Details Value See Also

Description

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.

Usage

1
2
3
calculate_DT_performance(pathDT, testMetrics = NULL,
  testPressures = NULL, low = "low", impaired = "impaired",
  smoothROC = TRUE)

Arguments

pathDT

character string, the path where the built models will be saved

low

character vectors with the labels of the pressure classes (in pressures) corresponding to low impact and impaired situations, respectively.

impaired

character vectors with the labels of the pressure classes (in pressures) corresponding to low impact and impaired situations, respectively.

smoothROC

if TRUE, the ROC curve is passed to smooth to be smoothed.

Details

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).

Value

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

See Also

roc build_DT


CedricMondy/ecodiag documentation built on May 10, 2019, 3:14 a.m.