public class Rule extends AbstractMOAObject
Modifier and Type | Class and Description |
---|---|
static class |
Rule.Builder |
Modifier and Type | Field and Description |
---|---|
protected AbstractAMRules |
amRules |
protected RuleActiveLearningNode |
learningNode |
protected List<RuleSplitNode> |
nodeList |
protected int |
ruleNumberID |
Constructor and Description |
---|
Rule(Rule.Builder builder) |
Modifier and Type | Method and Description |
---|---|
double |
computeError(weka.core.Instance instance) |
protected void |
debug(String string,
int level) |
Rule.Builder |
getBuilder() |
double |
getCurrentError() |
void |
getDescription(StringBuilder sb,
int indent)
MOA GUI output
|
long |
getInstancesSeen() |
RuleActiveLearningNode |
getLearningNode()
getLearningNode Method This is the way to pass info for other classes.
|
List<RuleSplitNode> |
getNodeList() |
double[] |
getPrediction(weka.core.Instance instance) |
double[] |
getPrediction(weka.core.Instance instance,
int mode) |
int |
getRuleNumberID() |
boolean |
isAnomaly(weka.core.Instance instance,
double uniVariateAnomalyProbabilityThreshold,
double multiVariateAnomalyProbabilityThreshold,
int numberOfInstanceesForAnomaly) |
boolean |
isCovering(weka.core.Instance inst) |
String |
printRule() |
void |
setBuilder(Rule.Builder builder) |
void |
setLearningNode(RuleActiveLearningNode learningNode) |
void |
setNodeList(List<RuleSplitNode> nodeList) |
void |
setRuleNumberID(int ruleNumberID) |
void |
split() |
double[] |
statisticsOtherBranchSplit() |
boolean |
tryToExpand(double splitConfidence,
double tieThreshold)
Try to Expand method.
|
boolean |
updatePageHinckleyTest(double error) |
void |
updateStatistics(weka.core.Instance instance) |
copy, copy, measureByteSize, measureByteSize, toString
protected List<RuleSplitNode> nodeList
protected RuleActiveLearningNode learningNode
protected int ruleNumberID
protected AbstractAMRules amRules
public Rule(Rule.Builder builder)
public int getRuleNumberID()
public void setRuleNumberID(int ruleNumberID)
public RuleActiveLearningNode getLearningNode()
public void setLearningNode(RuleActiveLearningNode learningNode)
public List<RuleSplitNode> getNodeList()
public long getInstancesSeen()
public void setNodeList(List<RuleSplitNode> nodeList)
public boolean isCovering(weka.core.Instance inst)
public void getDescription(StringBuilder sb, int indent)
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic void updateStatistics(weka.core.Instance instance)
public boolean tryToExpand(double splitConfidence, double tieThreshold)
splitConfidence
- tieThreshold
- public void split()
public double[] statisticsOtherBranchSplit()
public String printRule()
protected void debug(String string, int level)
public boolean isAnomaly(weka.core.Instance instance, double uniVariateAnomalyProbabilityThreshold, double multiVariateAnomalyProbabilityThreshold, int numberOfInstanceesForAnomaly)
public double computeError(weka.core.Instance instance)
public boolean updatePageHinckleyTest(double error)
public double[] getPrediction(weka.core.Instance instance, int mode)
public double[] getPrediction(weka.core.Instance instance)
public Rule.Builder getBuilder()
public void setBuilder(Rule.Builder builder)
public double getCurrentError()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.