ToolPRROC | R Documentation |
R6
class of the PRROC tool
An R6
class object.
ToolPRROC
is a wrapper class for
the PRROC tool, which
is an R library that provides calculations of ROC and Precision-Recall
curves.
prcbench::ToolIFBase
-> ToolPRROC
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()
new()
Default class initialization method.
ToolPRROC$new(...)
...
set value for curve
, minStepSize
,
aucType
.
set_curve()
A Boolean value to specify whether precision-recall curve is calculated.
ToolPRROC$set_curve(val)
val
TRUE: calculate, FALSE: not calculate.
set_minStepSize()
A numeric value to specify the minimum step size between two intermediate points.
ToolPRROC$set_minStepSize(val)
val
Step size between two points.
set_aucType()
Set the AUC calculation method
ToolPRROC$set_aucType(val)
val
1: integral, 2: Davis Goadrich
clone()
The objects of this class are cloneable with this method.
ToolPRROC$clone(deep = FALSE)
deep
Whether to make a deep clone.
This class is derived from ToolIFBase
.
create_toolset
for creating a list of tools.
## Initialization
toolprroc <- ToolPRROC$new()
## Show object info
toolprroc
## create_toolset should be used for benchmarking and curve evaluation
toolprroc2 <- create_toolset("PRROC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.