public class Evaluator
extends java.lang.Object
| Constructor and Description |
|---|
Evaluator() |
| Modifier and Type | Method and Description |
|---|---|
static int |
evaluate(ByteString[] triple,
KB training,
KB target)
Given a triple that was deduced from rules extracted from the training dataset,
it tests its correctness with respect to the target dataset.
|
static int |
evaluate(Rule rule,
ByteString[] triple,
KB training,
KB target)
Given a triple predicted by a rule, it evaluates its correctness in the training and target datasets
|
static void |
main(java.lang.String[] args) |
public static int evaluate(ByteString[] triple, KB training, KB target)
triple - training - target - public static int evaluate(Rule rule, ByteString[] triple, KB training, KB target)
rule - Rule that generated the predictiontriple - Predictiontraining - The dataset from which the rule was minedtarget - A newer version of the training dataset (superset)public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception