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.
D2MCS::VotingStrategy
-> SingleVoting
new()
The function initializes the object arguments during runtime.
SingleVoting$new(voting.schemes, metrics)
voting.schemes
A vector of voting schemes inheriting from
SimpleVoting
class.
metrics
A list containing the metrics used as basis to perform the voting strategy.
execute()
The function is used to execute all the previously defined (and compatible) voting schemes.
SingleVoting$execute(predictions, verbose = FALSE)
predictions
A ClusterPredictions
object containing
all the predictions computed in the classification stage.
verbose
A logical value to specify if more verbosity is needed.
clone()
The objects of this class are cloneable with this method.
SingleVoting$clone(deep = FALSE)
deep
Whether to make a deep clone.
D2MCS
, SimpleVoting
,
CombinedVoting