A new implementation of ClassMajorityVoting where
each class value has different values (weights).
D2MCS::SimpleVoting -> ClassWeightedVoting
Inherited methods
new()Method for initializing the object arguments during runtime.
ClassWeightedVoting$new(cutoff = 0.5, weights = NULL)cutoffA character vector defining the minimum probability used to perform a positive classification. If is not defined, 0.5 will be used as default value.
weightsA numeric vector with the weights of each cluster. If NULL performance achieved during training will be used as default.
getWeights()The function returns the weights used to perform the voting scheme.
ClassWeightedVoting$getWeights()A numeric vector.
setWeights()The function allows changing the value of the weights.
ClassWeightedVoting$setWeights(weights)weightsA numeric vector containing the new weights.
execute()The function implements the cluster-weighted majority voting procedure.
ClassWeightedVoting$execute(predictions, verbose = FALSE)predictionsA ClusterPredictions object containing
all the predictions achieved for each cluster.
verboseA logical value to specify if more verbosity is needed.
clone()The objects of this class are cloneable with this method.
ClassWeightedVoting$clone(deep = FALSE)deepWhether to make a deep clone.
D2MCS, ClassMajorityVoting,
ClassWeightedVoting, ProbAverageVoting,
ProbAverageWeightedVoting, ProbBasedMethodology