Learn R Programming

prcbench (version 1.1.8)

ToolAUCCalculator: ToolAUCCalculator

Description

R6 class of the AUCCalculator tool

Arguments

Format

An R6 class object.

Super class

prcbench::ToolIFBase -> ToolAUCCalculator

Methods

Inherited methods


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

jarpath

File 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

deep

Whether to make a deep clone.

Details

ToolAUCCalculator is a wrapper class for the AUCCalculator tool, which is a Java library that provides calculations of ROC and Precision-Recall curves.

See Also

This class is derived from ToolIFBase. create_toolset for creating a list of tools.

Examples

Run this code
## Initialization
toolauccalc <- ToolAUCCalculator$new()

## Show object info
toolauccalc

## create_toolset should be used for benchmarking and curve evaluation
toolauccalc2 <- create_toolset("AUCCalculator")

Run the code above in your browser using DataLab