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.schemes
A vector of voting schemes inheriting from
SimpleVoting
class.metrics
A 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
predictions
A
ClusterPredictions
object containing all the predictions computed in the classification stage.verbose
A 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
deep
Whether to make a deep clone.
See Also
D2MCS
, SimpleVoting
,
CombinedVoting