org.dllearner.algorithms.refinement2
Class ExampleBasedNode

java.lang.Object
  extended by org.dllearner.algorithms.refinement2.ExampleBasedNode

public class ExampleBasedNode
extends Object

Represents a node in the search tree. A node consists of the following parts: ... (see paper) ...

Author:
Jens Lehmann

Nested Class Summary
static class ExampleBasedNode.QualityEvaluationMethod
           
 
Constructor Summary
ExampleBasedNode(ROLComponent2Configurator configurator, Description concept)
           
 
Method Summary
 boolean addChild(ExampleBasedNode child)
           
 double getAccuracy(int nrOfPositiveExamples, int nrOfNegativeExamples)
           
 SortedSet<Description> getChildConcepts()
           
 SortedSet<ExampleBasedNode> getChildren()
           
 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.
 int getHorizontalExpansion()
           
 ExampleBasedNode getParent()
           
 ExampleBasedNode.QualityEvaluationMethod getQualityEvaluationMethod()
           
 String getRefinementChainString()
           
 String getShortDescription(int nrOfPositiveExamples, int nrOfNegativeExamples, String baseURI)
           
 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)
           
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExampleBasedNode

public ExampleBasedNode(ROLComponent2Configurator configurator,
                        Description concept)
Method Detail

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)

getShortDescription

public String getShortDescription(int nrOfPositiveExamples,
                                  int nrOfNegativeExamples,
                                  String baseURI)

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()

getChildConcepts

public SortedSet<Description> getChildConcepts()

getConcept

public Description getConcept()

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)


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann