View source: R/tool_interface.R
create_toolset | R Documentation |
The create_toolset
function takes names of predefined tools and
generates a list of wrapper functions for Precision-Recall curve
calculations.
create_toolset(
tool_names = NULL,
set_names = NULL,
calc_auc = TRUE,
store_res = TRUE
)
tool_names |
A character vector to specify the names of performance evaluation tools. The names for the following five tools can be currently used.
|
set_names |
A character vector to specify a predefined set name. Following six sets are currently available.
|
calc_auc |
A Boolean value to specify whether the AUC score should be calculated. |
store_res |
A Boolean value to specify whether the calculated curve is retrieved and stored |
A list of R6
tool objects.
run_benchmark
and run_evalcurve
require
the list of the tools generated by this function
ToolROCR
, ToolAUCCalculator
,
ToolPerfMeas
, ToolPRROC
, and
Toolprecrec
as R6 tool classes.
## Create ROCR and precrec
toolset1 <- create_toolset(c("ROCR", "precrec"))
toolset1
## Create auc5 tools
toolset2 <- create_toolset(set_names = "auc5")
toolset2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.