| ToolAUCCalculator {prcbench} | R Documentation |
ToolAUCCalculator
Description
R6 class of the AUCCalculator tool
Format
An R6 class object.
Details
ToolAUCCalculator is a wrapper class for
the AUCCalculator tool, which
is a Java library that provides calculations of ROC and Precision-Recall
curves.
Super class
prcbench::ToolIFBase -> ToolAUCCalculator
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
ToolAUCCalculator$new(...)
Arguments
...set value for
jarpath.
Method set_jarpath()
It sets an AUCCalculator jar file.
Usage
ToolAUCCalculator$set_jarpath(jarpath = NULL)
Arguments
jarpathFile path of the AUCCalculator jar file, e.g.
"/path1/path2/auc2.jar".
Method set_curvetype()
It sets the type of curve.
Usage
ToolAUCCalculator$set_curvetype(curvetype = "SPR")
Arguments
curvetype"SPR", "PR", or "ROC"
Method set_auctype()
It sets the type of calculation method
Usage
ToolAUCCalculator$set_auctype(auctype)
Arguments
auctype"java" or "r"
Method clone()
The objects of this class are cloneable with this method.
Usage
ToolAUCCalculator$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
toolauccalc <- ToolAUCCalculator$new()
## Show object info
toolauccalc
## create_toolset should be used for benchmarking and curve evaluation
toolauccalc2 <- create_toolset("AUCCalculator")
[Package prcbench version 1.1.8 Index]