public class UnanimousVotingMethod extends AbstractKNNClassificationMethod
| Constructor and Description |
|---|
UnanimousVotingMethod(Object classification) |
| Modifier and Type | Method and Description |
|---|---|
ClassificationSolution |
getPredictedSolution(Collection<RetrievalResult> cases)
Predicts the class that has all the votes
among the k most similar cases and is equal to the class configured
using the constructor.
|
getPredictedCasepublic UnanimousVotingMethod(Object classification)
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.