Class DecisionTree
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.dragon.DecisionTree
-
public class DecisionTree extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static FitnessFunctionDTLfitnessFunctionprotected static org.slf4j.Loggerloggerstatic intmaxDepthstatic PruningFunctionDTLpruningFunctionstatic doubletotalFMeasure
-
Constructor Summary
Constructors Constructor Description DecisionTree(Dragon dtl, ACache sourceCache, ACache targetCache, PseudoFMeasure pseudoFMeasure, double minPropertyCoverage, double propertyLearningRate, double pruningConfidence, AMapping refMapping, PropertyMapping propertyMapping)
-
Method Summary
-
-
-
Field Detail
-
logger
protected static org.slf4j.Logger logger
-
totalFMeasure
public static double totalFMeasure
-
maxDepth
public static int maxDepth
-
fitnessFunction
public static FitnessFunctionDTL fitnessFunction
-
pruningFunction
public static PruningFunctionDTL pruningFunction
-
-
Constructor Detail
-
DecisionTree
public DecisionTree(Dragon dtl, ACache sourceCache, ACache targetCache, PseudoFMeasure pseudoFMeasure, double minPropertyCoverage, double propertyLearningRate, double pruningConfidence, AMapping refMapping, PropertyMapping propertyMapping)
-
-
Method Detail
-
buildTree
public DecisionTree buildTree(int maxDepth)
-
prune
public DecisionTree prune()
-
getTotalMapping
public AMapping getTotalMapping()
-
getPathMapping
public AMapping getPathMapping()
-
getPathString
public String getPathString()
-
getTotalLS
public LinkSpecification getTotalLS()
-
clone
public DecisionTree clone()
-
cloneWithoutParent
protected DecisionTree cloneWithoutParent()
-
cloneWithoutChild
protected DecisionTree cloneWithoutChild(boolean withoutLeft)
-
getMeasureMapping
public AMapping getMeasureMapping(String measureExpression, ExtendedClassifier cp)
-
executeAtomicMeasure
public AMapping executeAtomicMeasure(String measureExpression, double threshold)
-
toStringOneLine
public String toStringOneLine()
-
setRefMapping
public void setRefMapping(AMapping refMapping)
-
getRefMapping
public AMapping getRefMapping()
-
getMinPropertyCoverage
public double getMinPropertyCoverage()
-
getPropertyLearningRate
public double getPropertyLearningRate()
-
getSourceCache
public ACache getSourceCache()
-
getTargetCache
public ACache getTargetCache()
-
getClassifier
public ExtendedClassifier getClassifier()
-
setClassifier
public void setClassifier(ExtendedClassifier classifier)
-
getParent
public DecisionTree getParent()
-
getDtl
public Dragon getDtl()
-
isLeftNode
public boolean isLeftNode()
-
isRoot
public boolean isRoot()
-
getLeftChild
public DecisionTree getLeftChild()
-
setLeftChild
public void setLeftChild(DecisionTree leftChild)
-
getRightChild
public DecisionTree getRightChild()
-
setRightChild
public void setRightChild(DecisionTree rightChild)
-
setParent
public void setParent(DecisionTree parent)
-
getPruningConfidence
public double getPruningConfidence()
-
setPruningConfidence
public void setPruningConfidence(double pruningConfidence)
-
getPropertyMapping
public PropertyMapping getPropertyMapping()
-
setPropertyMapping
public void setPropertyMapping(PropertyMapping propertyMapping)
-
-