public class DecisionTreeUtils
extends java.lang.Object
Constructor and Description |
---|
DecisionTreeUtils() |
Modifier and Type | Method and Description |
---|---|
static weka.classifiers.misc.InputMappedClassifier |
adaptClassifier(weka.core.Instances training,
SettingsObject settings) |
static weka.core.Instances |
adaptInstancesToClassifier(weka.core.Instances test,
weka.classifiers.misc.InputMappedClassifier classifier) |
static weka.classifiers.Evaluation |
classifyUsingTree(weka.classifiers.AbstractClassifier tree,
weka.core.Instances training,
weka.core.Instances test,
SettingsObject settings) |
static org.processmining.datadiscovery.WekaDecisionTreeRuleDiscovery.TreeRule |
createDecisionTree(org.deckfour.xes.model.XLog log,
org.processmining.models.graphbased.directed.transitionsystem.State source,
java.util.Set<org.processmining.models.graphbased.directed.transitionsystem.State> targets,
SettingsObject settings) |
static org.processmining.plugins.graphviz.dot.Dot |
enhanceWithDecisionTrees(ComparatorPanel root,
org.processmining.plugins.graphviz.dot.Dot graph,
ResultsObject results,
SettingsObject settings,
java.util.Map<org.processmining.models.graphbased.NodeID,org.processmining.plugins.graphviz.dot.DotNode> nodes,
java.util.Map<java.lang.Object,org.processmining.plugins.graphviz.dot.DotEdge> edges,
InputObject input) |
static weka.core.Instances |
extendInstances(weka.core.Instances instances,
weka.classifiers.AbstractClassifier treeA,
weka.core.Instances instancesA,
weka.classifiers.AbstractClassifier treeB,
weka.core.Instances instancesB)
takes instances and adds the predictions made by trees A and B as
attributes, and changes the class to agree / disagree
DO NOT USE YET
|
static weka.core.Instances[] |
getCorrectlyAndIncorrectlyClassifiedInstances(java.util.ArrayList<weka.classifiers.evaluation.Prediction> predictions,
weka.core.Instances instances) |
static boolean |
testInstances(weka.core.Instances instances,
weka.classifiers.AbstractClassifier classifier) |
public static org.processmining.datadiscovery.WekaDecisionTreeRuleDiscovery.TreeRule createDecisionTree(org.deckfour.xes.model.XLog log, org.processmining.models.graphbased.directed.transitionsystem.State source, java.util.Set<org.processmining.models.graphbased.directed.transitionsystem.State> targets, SettingsObject settings)
public static org.processmining.plugins.graphviz.dot.Dot enhanceWithDecisionTrees(ComparatorPanel root, org.processmining.plugins.graphviz.dot.Dot graph, ResultsObject results, SettingsObject settings, java.util.Map<org.processmining.models.graphbased.NodeID,org.processmining.plugins.graphviz.dot.DotNode> nodes, java.util.Map<java.lang.Object,org.processmining.plugins.graphviz.dot.DotEdge> edges, InputObject input) throws java.lang.Exception
java.lang.Exception
public static weka.classifiers.Evaluation classifyUsingTree(weka.classifiers.AbstractClassifier tree, weka.core.Instances training, weka.core.Instances test, SettingsObject settings) throws java.lang.Exception
java.lang.Exception
public static weka.core.Instances extendInstances(weka.core.Instances instances, weka.classifiers.AbstractClassifier treeA, weka.core.Instances instancesA, weka.classifiers.AbstractClassifier treeB, weka.core.Instances instancesB) throws java.lang.Exception
instances
- treeA
- treeB
- java.lang.Exception
public static weka.core.Instances[] getCorrectlyAndIncorrectlyClassifiedInstances(java.util.ArrayList<weka.classifiers.evaluation.Prediction> predictions, weka.core.Instances instances)
public static boolean testInstances(weka.core.Instances instances, weka.classifiers.AbstractClassifier classifier)
public static weka.core.Instances adaptInstancesToClassifier(weka.core.Instances test, weka.classifiers.misc.InputMappedClassifier classifier) throws java.lang.Exception
java.lang.Exception
public static weka.classifiers.misc.InputMappedClassifier adaptClassifier(weka.core.Instances training, SettingsObject settings) throws java.lang.Exception
java.lang.Exception