org.dllearner.algorithms.ocel
Class ExampleBasedNode
java.lang.Object
org.dllearner.algorithms.ocel.ExampleBasedNode
- All Implemented Interfaces:
- SearchTreeNode
public class ExampleBasedNode
- extends Object
- implements SearchTreeNode
Represents a node in the search tree. A node consists of
the following parts:
... (see paper) ...
- Author:
- Jens Lehmann
|
Method Summary |
boolean |
addChild(ExampleBasedNode child)
|
double |
getAccuracy(int nrOfPositiveExamples,
int nrOfNegativeExamples)
|
SortedSet<Description> |
getChildConcepts()
|
SortedSet<ExampleBasedNode> |
getChildren()
The children of this node. |
Description |
getConcept()
|
Set<Individual> |
getCoveredNegatives()
|
Set<Individual> |
getCoveredPositives()
|
int |
getCovPosMinusCovNeg()
Used to detect whether one node is more accurate than another one
with calculating accuracy itself. |
Description |
getExpression()
Gets the OWL 2 class expression at this search tree node. |
int |
getHorizontalExpansion()
|
ExampleBasedNode |
getParent()
|
ExampleBasedNode.QualityEvaluationMethod |
getQualityEvaluationMethod()
|
String |
getRefinementChainString()
|
String |
getShortDescription(int nrOfPositiveExamples,
int nrOfNegativeExamples,
String baseURI,
Map<String,String> prefixes)
|
String |
getShortDescriptionHTML(int nrOfPositiveExamples,
int nrOfNegativeExamples,
String baseURI)
|
String |
getStats(int nrOfPositiveExamples,
int nrOfNegativeExamples)
|
String |
getTreeString(int nrOfPositiveExamples,
int nrOfNegativeExamples)
|
String |
getTreeString(int nrOfPositiveExamples,
int nrOfNegativeExamples,
String baseURI)
|
String |
getTreeString(int nrOfPositiveExamples,
int nrOfNegativeExamples,
String baseURI,
Map<String,String> prefixes)
|
boolean |
isPosOnlyCandidate()
|
boolean |
isQualityEvaluated()
|
boolean |
isRedundant()
|
boolean |
isTooWeak()
|
void |
setCoveredExamples(Set<Individual> coveredPositives,
Set<Individual> coveredNegatives)
|
void |
setHorizontalExpansion(int horizontalExpansion)
|
void |
setPosOnlyCandidate(boolean isPosOnlyCandidate)
|
void |
setQualityEvaluationMethod(ExampleBasedNode.QualityEvaluationMethod qualityEvaluationMethod)
|
void |
setRedundant(boolean isRedundant)
|
void |
setTooWeak(boolean isTooWeak)
|
String |
toString()
|
ExampleBasedNode
public ExampleBasedNode(OCELConfigurator configurator,
Description concept)
setHorizontalExpansion
public void setHorizontalExpansion(int horizontalExpansion)
setRedundant
public void setRedundant(boolean isRedundant)
setTooWeak
public void setTooWeak(boolean isTooWeak)
addChild
public boolean addChild(ExampleBasedNode child)
setQualityEvaluationMethod
public void setQualityEvaluationMethod(ExampleBasedNode.QualityEvaluationMethod qualityEvaluationMethod)
setCoveredExamples
public void setCoveredExamples(Set<Individual> coveredPositives,
Set<Individual> coveredNegatives)
toString
public String toString()
- Overrides:
toString in class Object
getRefinementChainString
public String getRefinementChainString()
getTreeString
public String getTreeString(int nrOfPositiveExamples,
int nrOfNegativeExamples)
getTreeString
public String getTreeString(int nrOfPositiveExamples,
int nrOfNegativeExamples,
String baseURI)
getTreeString
public String getTreeString(int nrOfPositiveExamples,
int nrOfNegativeExamples,
String baseURI,
Map<String,String> prefixes)
getShortDescription
public String getShortDescription(int nrOfPositiveExamples,
int nrOfNegativeExamples,
String baseURI,
Map<String,String> prefixes)
getShortDescriptionHTML
public String getShortDescriptionHTML(int nrOfPositiveExamples,
int nrOfNegativeExamples,
String baseURI)
getStats
public String getStats(int nrOfPositiveExamples,
int nrOfNegativeExamples)
getAccuracy
public double getAccuracy(int nrOfPositiveExamples,
int nrOfNegativeExamples)
getCovPosMinusCovNeg
public int getCovPosMinusCovNeg()
- Used to detect whether one node is more accurate than another one
with calculating accuracy itself.
- Returns:
- Number of covered positives minus number of covered negatives.
getCoveredPositives
public Set<Individual> getCoveredPositives()
getCoveredNegatives
public Set<Individual> getCoveredNegatives()
getChildren
public SortedSet<ExampleBasedNode> getChildren()
- Description copied from interface:
SearchTreeNode
- The children of this node.
- Specified by:
getChildren in interface SearchTreeNode
- Returns:
- The children of this node.
getChildConcepts
public SortedSet<Description> getChildConcepts()
getConcept
public Description getConcept()
getExpression
public Description getExpression()
- Description copied from interface:
SearchTreeNode
- Gets the OWL 2 class expression at this search tree node.
- Specified by:
getExpression in interface SearchTreeNode
- Returns:
- The expression at this node.
getQualityEvaluationMethod
public ExampleBasedNode.QualityEvaluationMethod getQualityEvaluationMethod()
getHorizontalExpansion
public int getHorizontalExpansion()
isQualityEvaluated
public boolean isQualityEvaluated()
isRedundant
public boolean isRedundant()
isTooWeak
public boolean isTooWeak()
getParent
public ExampleBasedNode getParent()
- Returns:
- the parent
isPosOnlyCandidate
public boolean isPosOnlyCandidate()
setPosOnlyCandidate
public void setPosOnlyCandidate(boolean isPosOnlyCandidate)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann