public class EvaluatedDescriptionSet extends Object
| Constructor and Description |
|---|
EvaluatedDescriptionSet(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(EvaluatedDescription<? extends Score> ed)
Adds an evaluated description to this set and ensures that the size does not
exceed the limit.
|
void |
add(org.semanticweb.owlapi.model.OWLClassExpression description,
double accuracy,
AbstractClassExpressionLearningProblem<? extends Score> problem)
Adds an class expression to this set.
|
void |
addAll(Collection<EvaluatedDescriptionPosNeg> eds)
Adds a collection of evaluated description to this set and ensures that the size does not
exceed the limit.
|
EvaluatedDescription<? extends Score> |
getBest() |
double |
getBestAccuracy() |
int |
getMaxSize() |
NavigableSet<EvaluatedDescription<? extends Score>> |
getSet() |
EvaluatedDescription<? extends Score> |
getWorst() |
boolean |
isEmpty() |
boolean |
isFull() |
int |
size() |
List<org.semanticweb.owlapi.model.OWLClassExpression> |
toDescriptionList() |
String |
toString() |
public EvaluatedDescriptionSet(int maxSize)
maxSize - the maximum number of elements contained in this setpublic void add(org.semanticweb.owlapi.model.OWLClassExpression description, double accuracy, AbstractClassExpressionLearningProblem<? extends Score> problem)
description - the class expressionaccuracy - the accuracy of the class expressionproblem - the learning problempublic void add(EvaluatedDescription<? extends Score> ed)
ed - the evaluated description to addpublic void addAll(Collection<EvaluatedDescriptionPosNeg> eds)
eds - the evaluated descriptions to addpublic boolean isFull()
public boolean isEmpty()
public int size()
public EvaluatedDescription<? extends Score> getBest()
null if this set is empty.public EvaluatedDescription<? extends Score> getWorst()
null if this set is empty.public double getBestAccuracy()
public NavigableSet<EvaluatedDescription<? extends Score>> getSet()
public List<org.semanticweb.owlapi.model.OWLClassExpression> toDescriptionList()
public int getMaxSize()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann