Description Usage Arguments Value
View source: R/compare_models_with_datasets.R
Test using the provided models and features then plot the ROC and PRROC. Used to compare two datasets with the same comparsion made for the insects, leaving one dataset out. The required column is the Class, and its values must be "E" or "NE". Reditect to an object to save the models, ROCs results and Pvalues. Plots are outputed to a file in the working dir.
1 2 3 4 5 6 7 8 9 10 11 12 | VS_models_plot(
set1_model = list(),
set2_model = list(),
set1_data = "",
set2_data = "",
file_prefix = "Compared_",
set1.dataname = "Set1",
set2.dataname = "Set2",
set1.modelname = "set1_model",
set2.modelname = "set2_model",
test_vs_ZR = T
)
|
file_prefix |
Input a prefix for the filename of the plots. Default is "Insects_" |
test_vs_ZR |
Use pROC::roc.test of the tested ROC-AUC against a model that classifies every sample as the same class with the same probability (Zero Rule: ROC-AUC of 1.5). If set to FALSE, then test the results in a all vs all. If there is a single model and test_vs_ZR = FALSE, it will revert to TRUE. If set to "both", show both. |
set1 |
list of models. Each model is an object given by the train function of the caret package. |
set2 |
list of models. Each model is an object given by the train function of the caret package. |
set1.name |
Name to be used for the title of the plots for the first set. Default is "Set1" |
set2.name |
Name to be used for the title of the plots for the first set. Default is "Set2" |
The AUCs of the tests
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.