public abstract class QueryTreeHeuristic extends AbstractComponent implements Heuristic<EvaluatedRDFResourceTree>
Constructor and Description |
---|
QueryTreeHeuristic() |
Modifier and Type | Method and Description |
---|---|
int |
compare(EvaluatedRDFResourceTree tree1,
EvaluatedRDFResourceTree tree2) |
Heuristics.HeuristicType |
getHeuristicType() |
double |
getMaximumAchievableScore(EvaluatedRDFResourceTree tree)
Returns the maximum achievable score according to the used score
function.
|
double |
getNodeScore(EvaluatedRDFResourceTree node) |
abstract double |
getScore(EvaluatedRDFResourceTree tree) |
void |
setHeuristicType(Heuristics.HeuristicType heuristicType) |
void |
setPosExamplesWeight(double posExamplesWeight) |
isInitialized
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public QueryTreeHeuristic()
public abstract double getScore(EvaluatedRDFResourceTree tree)
public double getNodeScore(EvaluatedRDFResourceTree node)
getNodeScore
in interface Heuristic<EvaluatedRDFResourceTree>
public void setPosExamplesWeight(double posExamplesWeight)
posExamplesWeight
- the posExamplesWeight to setpublic double getMaximumAchievableScore(EvaluatedRDFResourceTree tree)
public int compare(EvaluatedRDFResourceTree tree1, EvaluatedRDFResourceTree tree2)
compare
in interface Comparator<EvaluatedRDFResourceTree>
public void setHeuristicType(Heuristics.HeuristicType heuristicType)
heuristicType
- the type of accuracy measure to setpublic Heuristics.HeuristicType getHeuristicType()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann