| ToolPRROC {prcbench} | R Documentation |
ToolPRROC
Description
R6 class of the PRROC tool
Format
An R6 class object.
Details
ToolPRROC is a wrapper class for
the PRROC tool, which
is an R library that provides calculations of ROC and Precision-Recall
curves.
Super class
prcbench::ToolIFBase -> ToolPRROC
Methods
Public methods
Inherited methods
prcbench::ToolIFBase$call()prcbench::ToolIFBase$get_auc()prcbench::ToolIFBase$get_result()prcbench::ToolIFBase$get_setname()prcbench::ToolIFBase$get_toolname()prcbench::ToolIFBase$get_x()prcbench::ToolIFBase$get_y()prcbench::ToolIFBase$print()prcbench::ToolIFBase$set_setname()prcbench::ToolIFBase$set_toolname()
Method new()
Default class initialization method.
Usage
ToolPRROC$new(...)
Arguments
...set value for
curve,minStepSize,aucType.
Method set_curve()
A Boolean value to specify whether precision-recall curve is calculated.
Usage
ToolPRROC$set_curve(val)
Arguments
valTRUE: calculate, FALSE: not calculate.
Method set_minStepSize()
A numeric value to specify the minimum step size between two intermediate points.
Usage
ToolPRROC$set_minStepSize(val)
Arguments
valStep size between two points.
Method set_aucType()
Set the AUC calculation method
Usage
ToolPRROC$set_aucType(val)
Arguments
val1: integral, 2: Davis Goadrich
Method clone()
The objects of this class are cloneable with this method.
Usage
ToolPRROC$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
This class is derived from ToolIFBase.
create_toolset for creating a list of tools.
Examples
## Initialization
toolprroc <- ToolPRROC$new()
## Show object info
toolprroc
## create_toolset should be used for benchmarking and curve evaluation
toolprroc2 <- create_toolset("PRROC")
[Package prcbench version 1.1.8 Index]