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)
cutoff
A character vector defining the minimum probability used to perform a positive classification. If is not defined, 0.5 will be used as default value.
weights
A 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)
weights
A numeric vector containing the new weights.
execute()
The function implements the cluster-weighted majority voting procedure.
ClassWeightedVoting$execute(predictions, verbose = FALSE)
predictions
A ClusterPredictions
object containing
all the predictions achieved for each cluster.
verbose
A logical value to specify if more verbosity is needed.
clone()
The objects of this class are cloneable with this method.
ClassWeightedVoting$clone(deep = FALSE)
deep
Whether to make a deep clone.
D2MCS
, ClassMajorityVoting
,
ClassWeightedVoting
, ProbAverageVoting
,
ProbAverageWeightedVoting
, ProbBasedMethodology