|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.Classifier | +--weka.classifiers.RuleClassifier
Field Summary | |
protected double |
accuracy
|
protected double |
reducedSetAccuracy
|
protected Rules |
rules
|
protected String |
ruleStrengthOption
|
Constructor Summary | |
RuleClassifier()
|
Method Summary | |
String |
accuracyTipText()
|
double |
classifyInstance(Instance instance)
Classifies a given instance. |
double |
getAccuracy()
Get the value of accuracy. |
String[] |
getOptions()
Gets the current settings of the Classifier. |
double |
getReducedSetAccuracy()
Get the value of reducedSetAccuracy. |
String |
getRuleStrengthOption()
Get the value of ruleStrengthOption. |
Enumeration |
listOptions()
Returns an enumeration of all the available options. |
String |
reducedSetAccuracyTipText()
|
String |
ruleStrengthOptionTipText()
|
void |
setAccuracy(double v)
Set the value of accuracy. |
void |
setOptions(String[] options)
Parses a given list of options. |
void |
setReducedSetAccuracy(double v)
Set the value of reducedSetAccuracy. |
void |
setRuleStrengthOption(String v)
Set the value of ruleStrengthOption. |
Methods inherited from class weka.classifiers.Classifier |
buildClassifier, forName, makeCopies |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Rules rules
protected String ruleStrengthOption
protected double accuracy
protected double reducedSetAccuracy
Constructor Detail |
public RuleClassifier()
Method Detail |
public String getRuleStrengthOption()
public void setRuleStrengthOption(String v)
v
- Value to assign to ruleStrengthOption.public String ruleStrengthOptionTipText()
public double getReducedSetAccuracy()
public void setReducedSetAccuracy(double v)
v
- Value to assign to reducedSetAccuracy.public String reducedSetAccuracyTipText()
public double getAccuracy()
public void setAccuracy(double v)
v
- Value to assign to accuracy.public String accuracyTipText()
public Enumeration listOptions()
OptionHandler
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of strings
Exception
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
public double classifyInstance(Instance instance) throws Exception
classifyInstance
in class Classifier
instance
- the instance to be classified
Exception
- if instance could not be classified
successfully
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |