public class ReasoningUtils extends Object implements Component
Modifier and Type | Class and Description |
---|---|
class |
ReasoningUtils.Coverage
binary set to divide a set in 2 partitions
|
class |
ReasoningUtils.CoverageCount
binary counter to divide a set in 2 partitions
|
Constructor and Description |
---|
ReasoningUtils(AbstractReasonerComponent reasoner)
create new reasoning utils
|
Modifier and Type | Method and Description |
---|---|
double |
getAccuracyOrTooWeak2(AccMethodTwoValued accuracyMethod,
org.semanticweb.owlapi.model.OWLClassExpression description,
Collection<org.semanticweb.owlapi.model.OWLIndividual> positiveExamples,
Collection<org.semanticweb.owlapi.model.OWLIndividual> negativeExamples,
double noise)
calculate accuracy of a concept, using the supplied accuracy method
|
double |
getAccuracyOrTooWeakExact2(AccMethodTwoValued accuracyMethod,
ReasoningUtils.CoverageCount[] cc,
double noise)
wrapper to call accuracy method with coverage count
|
ReasoningUtils.Coverage[] |
getCoverage(org.semanticweb.owlapi.model.OWLClassExpression concept,
Collection<org.semanticweb.owlapi.model.OWLIndividual>... collections)
binary partition a list of sets into true and false, depending on whether they satisfy concept.
|
ReasoningUtils.Coverage[] |
getCoverage(org.semanticweb.owlapi.model.OWLClassExpression concept,
Set<org.semanticweb.owlapi.model.OWLIndividual>... sets)
binary partition a list of sets into true and false, depending on whether they satisfy concept
|
org.dllearner.utilities.ReasoningUtils.Coverage3[] |
getCoverage3(org.semanticweb.owlapi.model.OWLClassExpression trueConcept,
org.semanticweb.owlapi.model.OWLClassExpression falseConcept,
Set<org.semanticweb.owlapi.model.OWLIndividual>... sets)
partition an array of sets into true, false and unknown, depending on whether they satisfy concept A or B
|
ReasoningUtils.CoverageCount[] |
getCoverageCount(org.semanticweb.owlapi.model.OWLClassExpression concept,
Collection<org.semanticweb.owlapi.model.OWLIndividual>... collections)
count the numbers of individuals satisfying a concept.
|
ReasoningUtils.CoverageCount[] |
getCoverageCount(org.semanticweb.owlapi.model.OWLClassExpression concept,
Set<org.semanticweb.owlapi.model.OWLIndividual>... sets)
count the numbers of individuals satisfying a concept
|
AbstractReasonerComponent |
getReasoner() |
void |
init()
Method to be called after the component has been configured.
|
void |
setReasoner(AbstractReasonerComponent reasoner) |
public ReasoningUtils(AbstractReasonerComponent reasoner)
reasoner
- reasoner to usepublic final ReasoningUtils.Coverage[] getCoverage(org.semanticweb.owlapi.model.OWLClassExpression concept, Collection<org.semanticweb.owlapi.model.OWLIndividual>... collections)
concept
- the concept for partitioningcollections
- list of collections to partition. they will be converted to sets first@SafeVarargs public final ReasoningUtils.Coverage[] getCoverage(org.semanticweb.owlapi.model.OWLClassExpression concept, Set<org.semanticweb.owlapi.model.OWLIndividual>... sets)
concept
- the OWL concept used for partitionsets
- list of sets to partitionpublic final ReasoningUtils.CoverageCount[] getCoverageCount(org.semanticweb.owlapi.model.OWLClassExpression concept, Collection<org.semanticweb.owlapi.model.OWLIndividual>... collections)
concept
- the OWL concept used for countingcollections
- list of collections of individuals to count on. will be converted to sets first@SafeVarargs public final ReasoningUtils.CoverageCount[] getCoverageCount(org.semanticweb.owlapi.model.OWLClassExpression concept, Set<org.semanticweb.owlapi.model.OWLIndividual>... sets)
concept
- the OWL concept used for countingsets
- list of sets of individuals to count on@SafeVarargs public final org.dllearner.utilities.ReasoningUtils.Coverage3[] getCoverage3(org.semanticweb.owlapi.model.OWLClassExpression trueConcept, org.semanticweb.owlapi.model.OWLClassExpression falseConcept, Set<org.semanticweb.owlapi.model.OWLIndividual>... sets)
trueConcept
- the OWL concept used for true partitionfalseConcept
- the OWL concept used for false partitionsets
- list of sets to partitionpublic double getAccuracyOrTooWeak2(AccMethodTwoValued accuracyMethod, org.semanticweb.owlapi.model.OWLClassExpression description, Collection<org.semanticweb.owlapi.model.OWLIndividual> positiveExamples, Collection<org.semanticweb.owlapi.model.OWLIndividual> negativeExamples, double noise)
accuracyMethod
- accuracy method to usedescription
- concept to testpositiveExamples
- set of positive examples to use for calculating the accuracynegativeExamples
- set of negative examples to use for calculating the accuracynoise
- noise level of the datapublic double getAccuracyOrTooWeakExact2(AccMethodTwoValued accuracyMethod, ReasoningUtils.CoverageCount[] cc, double noise)
accuracyMethod
- method to usecc
- already calculated coverage countnoise
- noise levelpublic void init()
Component
public AbstractReasonerComponent getReasoner()
public void setReasoner(AbstractReasonerComponent reasoner)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann