public class BasicClassificationOracle extends Object implements ClassificationOracle
| Constructor and Description |
|---|
BasicClassificationOracle() |
| Modifier and Type | Method and Description |
|---|---|
double |
getPredictionCost(CBRQuery query,
CBRCaseBase caseBase,
KNNClassificationConfig knnConfig)
Calculates the cost of the prediction made by the given case-base and
similarity configuration for the solution of the query.
|
double |
getPredictionCost(ClassificationSolution predictedSolution,
CBRCase testCase)
Calculates the cost of the given solution as a prediction for the
solution of the given case.
|
double |
getPredictionCost(ClassificationSolution predictedSolution,
ClassificationSolution correctSolution)
Calculates the cost of the given test solution while bein compared
to the given correct solution.
|
boolean |
isCorrectPrediction(CBRQuery query,
CBRCaseBase caseBase,
KNNClassificationConfig knnConfig)
Checks if the query is correctly classified by the given case-base and
similarity configuration.
|
boolean |
isCorrectPrediction(ClassificationSolution predictedSolution,
CBRCase testCase)
Checks if the predicted solution is the correct solution
for the given test case.
|
boolean |
isCorrectPrediction(ClassificationSolution predictedSolution,
ClassificationSolution correctSolution)
Checks if the predicted solution and the correct solution
are the same.
|
public BasicClassificationOracle()
public boolean isCorrectPrediction(ClassificationSolution predictedSolution, CBRCase testCase)
isCorrectPrediction in interface ClassificationOraclepredictedSolution - the predicted solution.testCase - the test case (query and correct solution).public boolean isCorrectPrediction(ClassificationSolution predictedSolution, ClassificationSolution correctSolution)
isCorrectPrediction in interface ClassificationOraclepredictedSolution - the predicted solution.correctSolution - the correct solution.public boolean isCorrectPrediction(CBRQuery query, CBRCaseBase caseBase, KNNClassificationConfig knnConfig)
isCorrectPrediction in interface ClassificationOraclequery - the query to be tested.caseBase - the case base to use to find the predicted solution.knnConfig - the similarity configuration.public double getPredictionCost(ClassificationSolution predictedSolution, CBRCase testCase)
getPredictionCost in interface ClassificationOraclepredictedSolution - the predicted solution.testCase - the test case (query and correct solution).public double getPredictionCost(ClassificationSolution predictedSolution, ClassificationSolution correctSolution)
getPredictionCost in interface ClassificationOraclepredictedSolution - the predicted solution.correctSolution - the correct solution.public double getPredictionCost(CBRQuery query, CBRCaseBase caseBase, KNNClassificationConfig knnConfig)
getPredictionCost in interface ClassificationOraclequery - the query to be tested.caseBase - the case base to use to find the predicted solution.knnConfig - the similarity configuration.Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.