weka.classifiers
Class Prism
java.lang.Object
|
+--weka.classifiers.Classifier
|
+--weka.classifiers.Prism
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class Prism
- extends Classifier
Class for building and using a PRISM classifier. 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.
- Author:
- Ian H. Witten (ihw@cs.waikato.ac.nz)
- See Also:
- Serialized Form
Constructor Summary |
Prism()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Prism
public Prism()
classifyInstance
public double classifyInstance(Instance inst)
- Classifies a given instance.
- Overrides:
classifyInstance
in class Classifier
- Parameters:
inst
- the instance to be classified- Returns:
- the classification
buildClassifier
public void buildClassifier(Instances data)
throws java.lang.Exception
- Generates the classifier.
- Overrides:
buildClassifier
in class Classifier
- Parameters:
data
- the data to be used- Throws:
java.lang.Exception
- if the classifier can't built successfully
toString
public java.lang.String toString()
- Prints a description of the classifier.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a description of the classifier as a string
main
public static void main(java.lang.String[] args)
- Main method for testing this class