|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.utilities.examples.AutomaticNegativeExampleFinderOWL
public class AutomaticNegativeExampleFinderOWL
| Constructor Summary | |
|---|---|
AutomaticNegativeExampleFinderOWL(SortedSet<Individual> fullPositiveSet,
AbstractReasonerComponent reasoningService)
takes as input a full positive set to make sure no negatives are added as positives |
|
| Method Summary | |
|---|---|
SortedSet<Individual> |
getNegativeExamples(int neglimit,
boolean forceNegLimit)
see getNegativeExamples(int neglimit, boolean stable ) |
SortedSet<Individual> |
getNegativeExamples(int neglimit,
boolean stable,
boolean forceNegLimit)
aggregates all collected neg examples CAVE: it is necessary to call one of the make functions before calling this OTHERWISE it will choose random examples |
void |
makeNegativeExamplesFromAllOtherInstances()
just takes all other instances from the ontology, except the ones in the fullPositiveSet (see Constructor) |
void |
makeNegativeExamplesFromDomain(ObjectProperty atomicRole)
misleading method name, examples are all instances from the a-Part of the atomicRole(a,b) it has nothing to do with the actual Domain class |
void |
makeNegativeExamplesFromParallelClasses(SortedSet<Individual> positiveSet)
NOT IMPLEMENTED YET, DO NOT USE makes negEx from classes, the posEx belong to. |
void |
makeNegativeExamplesFromRange(ObjectProperty atomicRole)
misleading method name, examples are all instances from the b-Part of the atomicRole(a,b) it has nothing to do with the actual Range class |
void |
makeNegativeExamplesFromRelatedInstances(SortedSet<Individual> instances,
String objectNamespace)
NOT IMPLEMENTED YET, DO NOT USE makes neg ex from related instances, that take part in a role R(pos,neg) filters all objects, that don't use the given namespace |
void |
makeNegativeExamplesFromSuperClasses(NamedClass concept)
if pos ex derive from one class, then neg ex are taken from a superclass |
void |
makeNegativeExamplesFromSuperClasses(NamedClass concept,
int depth)
if pos ex derive from one class, then neg ex are taken from a superclass CURRENTLY SAME METHOD AS makeNegativeExamplesFromSuperClasses(NamedClass concept) but works quite often |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutomaticNegativeExampleFinderOWL(SortedSet<Individual> fullPositiveSet,
AbstractReasonerComponent reasoningService)
fullPositiveSet - reasoningService - | Method Detail |
|---|
public SortedSet<Individual> getNegativeExamples(int neglimit,
boolean forceNegLimit)
getNegativeExamples(int neglimit, boolean stable )
neglimit -
public SortedSet<Individual> getNegativeExamples(int neglimit,
boolean stable,
boolean forceNegLimit)
neglimit - size of negative Example set, 0 means all, which can be quite largestable - decides whether neg Examples are randomly picked, default false, faster for developing, since the cache can be usedforceNegLimit - forces that exactly neglimit instances are returned by adding more instancespublic void makeNegativeExamplesFromAllOtherInstances()
public void makeNegativeExamplesFromRelatedInstances(SortedSet<Individual> instances,
String objectNamespace)
instances - objectNamespace - public void makeNegativeExamplesFromParallelClasses(SortedSet<Individual> positiveSet)
positiveSet - public void makeNegativeExamplesFromSuperClasses(NamedClass concept)
concept -
public void makeNegativeExamplesFromSuperClasses(NamedClass concept,
int depth)
concept - depth - PARAMETER CURRENTLY NOT USED, ONLY DIRECT SUPERCLASSESpublic void makeNegativeExamplesFromDomain(ObjectProperty atomicRole)
atomicRole - public void makeNegativeExamplesFromRange(ObjectProperty atomicRole)
atomicRole -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||