VotingStrategy {D2MCS} | R Documentation |
Voting Strategy template.
Description
Abstract class used to define new SingleVoting
and
CombinedVoting
schemes.
Methods
Public methods
Method new()
Abstract method used to initialize the object arguments during runtime.
Usage
VotingStrategy$new()
Method getVotingSchemes()
The function returns the voting schemes that will participate in the voting strategy.
Usage
VotingStrategy$getVotingSchemes()
Returns
A vector of object inheriting from VotingStrategy
class.
Method getMetrics()
The function is used to get the metric that will be used during the voting strategy.
Usage
VotingStrategy$getMetrics()
Returns
A character vector.
Method execute()
Abstract function used to implement the operation of the voting schemes.
Usage
VotingStrategy$execute(predictions, ...)
Arguments
predictions
A
ClusterPredictions
object containing the prediction achieved for each cluster....
Further arguments passed down to
execute
function.
Method getName()
The function returns the name of the voting scheme.
Usage
VotingStrategy$getName()
Returns
A character vector of size 1.
Method clone()
The objects of this class are cloneable with this method.
Usage
VotingStrategy$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
See Also
D2MCS
, SingleVoting
,
CombinedVoting