MeasureFunction {D2MCS} | R Documentation |
Archetype to define customized measures.
Description
Abstract class used as a template to define new M.L. performance measures.
Details
The GenericHeuristic
is an full-abstract class so it cannot
be instantiated. To ensure the proper operation, compute
method is
automatically invoke by D2MCS
framework when needed.
Methods
Public methods
Method new()
Method for initializing the object arguments during runtime.
Usage
MeasureFunction$new(performance = NULL)
Arguments
performance
An optional
ConfMatrix
parameter to define the type of object used to compute the measure.
Method compute()
The function implements the metric used to measure the performance achieved by the M.L. model.
Usage
MeasureFunction$compute(performance.output = NULL)
Arguments
performance.output
An optional
ConfMatrix
parameter to define the type of object used to compute the measure.
Details
This function is automatically invoke by the D2MCS
framework.
Returns
A numeric vector of size 1 or NULL if an error occurred.
Method clone()
The objects of this class are cloneable with this method.
Usage
MeasureFunction$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.