ToolIFBase | R Documentation |
Base class of performance evaluation tools.
An R6
class object
ToolIFBase
is an abstract class to provide a uniform interface for
performance evaluation tools.
new()
Default class initialization method.
ToolIFBase$new(...)
...
set value for setname
, calc_auc
,
store_res
, x
, y
.
call()
It calls the tool to calculate precision-recall curves.
ToolIFBase$call(testset, calc_auc, store_res)
testset
R6
object generated by the create_testset
function.
calc_auc
A Boolean value to specify whether the AUC score should be calculated.
store_res
A Boolean value to specify whether the calculated curve is retrieved and stored.
get_toolname()
Get the name of the tool.
ToolIFBase$get_toolname()
set_toolname()
Set the name of the tool.
ToolIFBase$set_toolname(toolname)
toolname
Name of the tool.
get_setname()
Get the name of the tool set.
ToolIFBase$get_setname()
set_setname()
Set the name of the tool set.
ToolIFBase$set_setname(setname)
setname
Name of the tool set.
get_result()
Get a list with curve values and the AUC score.
ToolIFBase$get_result()
get_x()
Get calculated recall values.
ToolIFBase$get_x()
get_y()
Get calculated precision values.
ToolIFBase$get_y()
get_auc()
Get tne AUC score.
ToolIFBase$get_auc()
print()
Pretty print of the tool interface
ToolIFBase$print(...)
...
Not used.
clone()
The objects of this class are cloneable with this method.
ToolIFBase$clone(deep = FALSE)
deep
Whether to make a deep clone.
ToolROCR
, ToolAUCCalculator
,
ToolPerfMeas
, ToolPRROC
,
and Toolprecrec
are derived from this class.
create_toolset
for creating a list of tools.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.