public class MajorityVotingMethod extends AbstractKNNClassificationMethod
| Constructor and Description |
|---|
MajorityVotingMethod() |
| Modifier and Type | Method and Description |
|---|---|
ClassificationSolution |
getPredictedSolution(Collection<RetrievalResult> cases)
Predicts the class that has the highest number of votes
among the k most similar cases.
|
getPredictedCasepublic MajorityVotingMethod()
public ClassificationSolution getPredictedSolution(Collection<RetrievalResult> cases)
getPredictedSolution in interface KNNClassificationMethodgetPredictedSolution in class AbstractKNNClassificationMethodcases - an ordered list of cases along with similarity scores.Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.