plot.thresholds_df | R Documentation |
Plot threshold performance metrics
## S3 method for class 'thresholds_df' plot( x, title = NULL, caption = NULL, font_size = 11, line_size = 0.5, point_size = NA, ncol = 2, print = TRUE, ... )
x |
A |
title |
Plot title. Default NULL produces no title |
caption |
Plot caption. Default NULL produces no caption unless
|
font_size |
Relative size of all fonts in plot, default = 11 |
line_size |
Width of lines, default = 0.5 |
point_size |
Point size. Default is |
ncol |
Number of columns of facets. |
print |
Print the plot? Default = TRUE |
... |
Unused |
A ggplot object, invisibly.
get_thresholds
m <- machine_learn(pima_diabetes[1:100, ], patient_id, outcome = diabetes, models = "xgb", tune = FALSE, n_folds = 3) get_thresholds(m) %>% plot() get_thresholds(m, optimize = "cost", measures = c("acc", "cost"), cost_fn = 3) %>% plot(point_size = .5, ncol = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.