|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.Classifier | +--weka.classifiers.rules.Prism
Class for building and using a PRISM rule set for classifcation. Can only deal with nominal attributes. Can't deal with missing values. Doesn't do any pruning. For more information, see
J. Cendrowska (1987). PRISM: An algorithm for inducing modular rules. International Journal of Man-Machine Studies. Vol.27, No.4, pp.349-370.
Constructor Summary | |
Prism()
|
Method Summary | |
void |
buildClassifier(Instances data)
Generates the classifier. |
double |
classifyInstance(Instance inst)
Classifies a given instance. |
java.lang.String |
globalInfo()
Returns a string describing classifier |
static void |
main(java.lang.String[] args)
Main method for testing this class |
java.lang.String |
toString()
Prints a description of the classifier. |
Methods inherited from class weka.classifiers.Classifier |
debugTipText, distributionForInstance, forName, getDebug, getOptions, listOptions, makeCopies, setDebug, setOptions |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Prism()
Method Detail |
public java.lang.String globalInfo()
public double classifyInstance(Instance inst)
classifyInstance
in class Classifier
inst
- the instance to be classified
public void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier
in class Classifier
data
- the data to be used
java.lang.Exception
- if the classifier can't built successfullypublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London