Learn R Programming

prcbench (version 0.3.2)

create_toolset: Create a set of tools

Description

The create_toolset function takes names of predefined tools and generates a list of wrapper functions for Precision-Recall curve calculations.

Usage

create_toolset(tool_names = NULL, set_names = NULL, calc_auc = TRUE,
  store_res = TRUE)

Arguments

tool_names
A character vector to specify the names of performance evaluation tools. The names for the following five tools can be currently used.

  • ROCR
  • AUCCalculator
  • PerfMeas
  • PRROC
  • precrec

set_names
A character vector to specify a predefined set name. Following six sets are currently available.

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

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

Value

  • A list of R6 tool objects.

See Also

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.

Examples

Run this code
## Create ROCR and precrec
toolset1 <- create_toolset(c("ROCR", "precrec"))

## Create auc5 tools
toolset2 <- create_toolset(set_names = "auc5")

Run the code above in your browser using DataLab