|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.method.reuse.classification.AbstractKNNClassificationMethod
jcolibri.method.reuse.classification.MajorityVotingMethod
public class MajorityVotingMethod
Provides the ability to classify a query by predicting its solution from supplied cases. Classification is done by majority voting, so the predicted class is the one that has the highest number of votes.
Constructor Summary | |
---|---|
MajorityVotingMethod()
|
Method Summary | |
---|---|
ClassificationSolution |
getPredictedSolution(java.util.Collection<RetrievalResult> cases)
Predicts the class that has the highest number of votes among the k most similar cases. |
Methods inherited from class jcolibri.method.reuse.classification.AbstractKNNClassificationMethod |
---|
getPredictedCase |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MajorityVotingMethod()
Method Detail |
---|
public ClassificationSolution getPredictedSolution(java.util.Collection<RetrievalResult> cases)
getPredictedSolution
in interface KNNClassificationMethod
getPredictedSolution
in class AbstractKNNClassificationMethod
cases
- an ordered list of cases along with similarity scores.
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |