|
||||||||||
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 | +--weka.classifiers.LEM2
Field Summary | |
protected Instances |
instances
The dataset header for the purposes of printing out a semi-intelligible model |
Fields inherited from class weka.classifiers.RuleClassifier |
accuracy, reducedSetAccuracy, rules, ruleStrengthOption |
Constructor Summary | |
LEM2()
|
Method Summary | |
void |
buildClassifier(Instances i)
Generates the classifier. |
String |
debugTipText()
|
int |
getDebug()
Handling local variables |
String[] |
getOptions()
Gets the current settings of the Classifier. |
Enumeration |
listOptions()
-D Debug |
static void |
main(String[] args)
Main method for testing this class. |
void |
printInfo()
|
void |
setDebug(int v)
|
void |
setOptions(String[] options)
Parses a given list of options. |
String |
toString()
Returns a description of the classifier. |
Methods inherited from class weka.classifiers.RuleClassifier |
accuracyTipText, classifyInstance, getAccuracy, getReducedSetAccuracy, getRuleStrengthOption, reducedSetAccuracyTipText, ruleStrengthOptionTipText, setAccuracy, setReducedSetAccuracy, setRuleStrengthOption |
Methods inherited from class weka.classifiers.Classifier |
forName, makeCopies |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Instances instances
Constructor Detail |
public LEM2()
Method Detail |
public void buildClassifier(Instances i) throws Exception
buildClassifier
in class Classifier
i
- set of instances serving as training data
Exception
- if the classifier has not been generated
successfullypublic int getDebug()
public void setDebug(int v)
public String debugTipText()
public Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class RuleClassifier
public void setOptions(String[] options) throws Exception
setOptions
in interface OptionHandler
setOptions
in class RuleClassifier
options
- the list of options as an array of strings
Exception
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class RuleClassifier
public void printInfo()
public String toString()
toString
in class Object
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |