Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weka.classifiers.rules
Class Prism

    java.lang.Object
      weka.classifiers.Classifier
          weka.classifiers.rules.Prism

All Implemented Interfaces:
  java.io.Serializable, java.lang.Cloneable, OptionHandler

    public class Prism

extends Classifier

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.

Version:
  $Revision: 1.17 $
Author:
  Ian H. Witten (ihw@cs.waikato.ac.nz)
See Also:
  Serialized Form

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, makeCopy, setDebug, setOptions`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Prism

    public Prism()

Method Detail

### globalInfo

    public java.lang.String globalInfo()

  Returns a string describing classifier

  Returns:
    a description suitable for displaying in the explorer/experimenter gui

### 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.

  Specified by:
    `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

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD