Learn R Programming

D2MCS (version 1.0.1)

MeasureFunction: Archetype to define customized measures.

Description

Abstract class used as a template to define new M.L. performance measures.

Arguments

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.

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.

See Also

MeasureFunction