SimpleVoting: Abtract class to define simple voting schemes.

SimpleVotingR Documentation

Abtract class to define simple voting schemes.

Description

Abstract class used as a template to define new customized simple voting schemes.

Methods

Public methods


Method new()

Method for initializing the object arguments during runtime.

Usage
SimpleVoting$new(cutoff = NULL)
Arguments
cutoff

A character vector defining the minimum probability used to perform a positive classification. If is not defined, 0.5 will be used as default value.


Method getCutoff()

The function obtains the minimum probabilistic value used to perform a positive classification.

Usage
SimpleVoting$getCutoff()
Returns

A numeric value.


Method getFinalPred()

The function is used to return the prediction values computed by a voting strategy.

Usage
SimpleVoting$getFinalPred(type = NULL, target = NULL, filter = NULL)
Arguments
type

A character to define which type of predictions should be returned. If not defined all type of probabilities will be returned. Conversely if 'prob' or 'raw' is defined then computed 'probabilistic' or 'class' values are returned.

target

A character defining the value of the positive class.

filter

A logical value used to specify if only predictions matching the target value should be returned or not. If TRUE the function returns only the predictions matching the target value. Conversely if FALSE (by default) the function returns all the predictions.

Returns

A FinalPred object.


Method execute()

Abstract function used to implement the operation of the voting scheme.

Usage
SimpleVoting$execute(predictions, verbose = FALSE)
Arguments
predictions

A ClusterPredictions object containing all the predictions achieved for each cluster.

verbose

A logical value to specify if more verbosity is needed.


Method clone()

The objects of this class are cloneable with this method.

Usage
SimpleVoting$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

D2MCS, ClassMajorityVoting, ClassWeightedVoting, ProbAverageVoting, ProbAverageWeightedVoting, ProbBasedMethodology, CombinedVoting


D2MCS documentation built on Aug. 23, 2022, 5:07 p.m.