public class SimilarityWeightedVotingMethod extends AbstractKNNClassificationMethod
| Constructor and Description |
|---|
SimilarityWeightedVotingMethod() |
| Modifier and Type | Method and Description |
|---|---|
ClassificationSolution |
getPredictedSolution(Collection<RetrievalResult> cases)
Predicts the class that has the highest value vote
among the k most similar cases, where votes are based on
similarity to the query.
|
getPredictedCasepublic SimilarityWeightedVotingMethod()
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.