| SingleVoting {D2MCS} | R Documentation |
Manages the execution of Simple Votings.
Description
The class is responsible of initializing and executing voting schemes. Additionally, to ensure a proper operation, the class automatically checks the compatibility of defined voting schemes.
Super class
D2MCS::VotingStrategy -> SingleVoting
Methods
Public methods
Inherited methods
Method new()
The function initializes the object arguments during runtime.
Usage
SingleVoting$new(voting.schemes, metrics)
Arguments
voting.schemesA vector of voting schemes inheriting from
SimpleVotingclass.metricsA list containing the metrics used as basis to perform the voting strategy.
Method execute()
The function is used to execute all the previously defined (and compatible) voting schemes.
Usage
SingleVoting$execute(predictions, verbose = FALSE)
Arguments
predictionsA
ClusterPredictionsobject containing all the predictions computed in the classification stage.verboseA logical value to specify if more verbosity is needed.
Method clone()
The objects of this class are cloneable with this method.
Usage
SingleVoting$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
D2MCS, SimpleVoting,
CombinedVoting