|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.Classifier | +--weka.classifiers.Voter
Constructor Summary | |
Voter()
|
Method Summary | |
String |
accuracyTipText()
|
void |
buildClassifier(Instances inst)
Generates a classifier. |
double |
classifyInstance(Instance inst)
Classifies a given instance. |
String |
debugTipText()
|
double |
getAccuracy()
Get the value of accuracy. |
int |
getDebug()
Get the value of debug. |
String[] |
getOptions()
Gets the current settings of the Classifier. |
Enumeration |
listOptions()
Returns an enumeration of all the available options. |
static void |
main(String[] args)
|
void |
setAccuracy(double v)
Set the value of accuracy. |
void |
setDebug(int v)
Set the value of debug. |
void |
setOptions(String[] options)
Parses a given list of options. |
String |
toString()
|
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 |
Constructor Detail |
public Voter()
Method Detail |
public void buildClassifier(Instances inst) throws Exception
Classifier
buildClassifier
in class Classifier
inst
- set of instances serving as training data
Exception
- if the classifier has not been
generated successfullypublic double classifyInstance(Instance inst) throws Exception
Classifier
classifyInstance
in class Classifier
inst
- the instance to be classified
Exception
- if instance could not be classified
successfullypublic int getDebug()
public void setDebug(int v)
v
- Value to assign to debug.public String debugTipText()
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 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 |