| ToolIFBase {prcbench} | R Documentation |
ToolIFBase
Description
Base class of performance evaluation tools.
Format
An R6 class object
Details
ToolIFBase is an abstract class to provide a uniform interface for
performance evaluation tools.
Methods
Public methods
Method new()
Default class initialization method.
Usage
ToolIFBase$new(...)
Arguments
...set value for
setname,calc_auc,store_res,x,y.
Method call()
It calls the tool to calculate precision-recall curves.
Usage
ToolIFBase$call(testset, calc_auc, store_res)
Arguments
testsetR6object generated by thecreate_testsetfunction.calc_aucA Boolean value to specify whether the AUC score should be calculated.
store_resA Boolean value to specify whether the calculated curve is retrieved and stored.
Method get_toolname()
Get the name of the tool.
Usage
ToolIFBase$get_toolname()
Method set_toolname()
Set the name of the tool.
Usage
ToolIFBase$set_toolname(toolname)
Arguments
toolnameName of the tool.
Method get_setname()
Get the name of the tool set.
Usage
ToolIFBase$get_setname()
Method set_setname()
Set the name of the tool set.
Usage
ToolIFBase$set_setname(setname)
Arguments
setnameName of the tool set.
Method get_result()
Get a list with curve values and the AUC score.
Usage
ToolIFBase$get_result()
Method get_x()
Get calculated recall values.
Usage
ToolIFBase$get_x()
Method get_y()
Get calculated precision values.
Usage
ToolIFBase$get_y()
Method get_auc()
Get tne AUC score.
Usage
ToolIFBase$get_auc()
Method print()
Pretty print of the tool interface
Usage
ToolIFBase$print(...)
Arguments
...Not used.
Method clone()
The objects of this class are cloneable with this method.
Usage
ToolIFBase$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
ToolROCR, ToolAUCCalculator,
ToolPerfMeas, ToolPRROC,
and Toolprecrec are derived from this class.
create_toolset for creating a list of tools.