public class GreedySelection extends Object
See:
B. Smyth and P. McClave. Similarity vs. diversity. In ICCBR '01: Proceedings of the 4th International Conference on Case-Based Reasoning, pages 347-361, London, UK, 2001. Springer-Verlag.
| Constructor and Description |
|---|
GreedySelection() |
| Modifier and Type | Method and Description |
|---|---|
static CBRCase |
getMoreQuality(CBRQuery query,
Collection<CBRCase> cases,
Collection<CBRCase> R,
NNConfig simConfig)
Returns the case with more quality.
|
static List<CBRCase> |
greedySelection(Collection<RetrievalResult> cases,
CBRQuery query,
NNConfig simConfig,
int k)
Executes the greedy selection algorithm
|
static double |
relDiversity(CBRCase c,
Collection<CBRCase> R,
NNConfig simConfig) |
public GreedySelection()
public static List<CBRCase> greedySelection(Collection<RetrievalResult> cases, CBRQuery query, NNConfig simConfig, int k)
cases - to select fromquery - to comparesimConfig - is the knn similarity configuration. Its k determines the number of returned casespublic static CBRCase getMoreQuality(CBRQuery query, Collection<CBRCase> cases, Collection<CBRCase> R, NNConfig simConfig)
query - to comparecases - to compareR - is the set of previous selected casessimConfig - is the knn similarity configpublic static double relDiversity(CBRCase c, Collection<CBRCase> R, NNConfig simConfig)
Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.