jcolibri.method.reuse.classification
Interface KNNClassificationMethod

All Known Implementing Classes:
AbstractKNNClassificationMethod, MajorityVotingMethod, SimilarityWeightedVotingMethod, UnanimousVotingMethod

public interface KNNClassificationMethod

Interface for providing the ability to classify a query by predicting its solution from supplied cases.

Author:
Derek Bridge, Lisa Cummins 16/05/07

Method Summary
 CBRCase getPredictedCase(CBRQuery query, java.util.Collection<RetrievalResult> cases)
          Gets the predicted solution of the given cases according to the classification type and returns a case that has the query description and the predicted solution.
 ClassificationSolution getPredictedSolution(java.util.Collection<RetrievalResult> cases)
          Gets the predicted solution of the given cases according to the classification type.
 

Method Detail

getPredictedSolution

ClassificationSolution getPredictedSolution(java.util.Collection<RetrievalResult> cases)
Gets the predicted solution of the given cases according to the classification type.

Parameters:
cases - a list of cases along with similarity scores.
Returns:
Returns the predicted solution.

getPredictedCase

CBRCase getPredictedCase(CBRQuery query,
                         java.util.Collection<RetrievalResult> cases)
Gets the predicted solution of the given cases according to the classification type and returns a case that has the query description and the predicted solution.

Parameters:
query - the query.
cases - a list of cases along with similarity scores.
Returns:
Returns a case with the query description as its description and the predicted solution as its solution.

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es