I've been using an interpretable machine learning package for binary decision trees known as IAI.
Long story short: the core method here is known as an 'optimal classifier' (it does not use greedy heuristics such as random forest or XGBoost. But instead evaluates all trees in combination to obtain global optimisation).
So, given the opposing merits of these three models, I would like to compare AUCs on one graph. Suppose then that I had three stored plots:
Optimal classifier:
x <- iai::roc_curve(grid, test_X, test_y, positive_label = 1)
Random forest:
y <- iai::roc_curve(grid, test_X, test_y, positive_label = 1)
XGBoost
z <- iai::roc_curve(grid, test_X, test_y, positive_label = 1)
Is it possible to combine these in one plot? I've tried pROC and "add true" arguments. But I haven't had any luck.
I've attached the source of my code, in case that is helpful. Would truly appreciate some help.
Optimal Classifier AUC:
https://docs.interpretable.ai/stable/IAI-R/quickstart/ot_classification/
Greedy Methods AUC
https://docs.interpretable.ai/stable/IAI-R/quickstart/heur_classification/
pROCcode and plot them yourself with aplotcall and a couple oflinescalls, just like how you'd plot any other three curves. An alternative is to extract the data, create a data frame containing said data, and useggplot2. $\endgroup$pROCpackage has a function likerocoraucthat determines the points that make it to the plot. Take those points and plot them yourself, as you would plot any other two variables. $\endgroup$