Package weka.classifiers.rules
Class Prism
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.rules.Prism
- All Implemented Interfaces:
Serializable,Cloneable,CapabilitiesHandler,OptionHandler,RevisionHandler,TechnicalInformationHandler
Class for building and using a PRISM rule set for classification. 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. 27(4):349-370. BibTeX:
For more information, see
J. Cendrowska (1987). PRISM: An algorithm for inducing modular rules. International Journal of Man-Machine Studies. 27(4):349-370. BibTeX:
@article{Cendrowska1987,
author = {J. Cendrowska},
journal = {International Journal of Man-Machine Studies},
number = {4},
pages = {349-370},
title = {PRISM: An algorithm for inducing modular rules},
volume = {27},
year = {1987}
}
Valid options are:
-D If set, classifier is run in debug mode and may output additional info to the console
- Version:
- $Revision: 5529 $
- Author:
- Ian H. Witten (ihw@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildClassifier(Instances data) Generates the classifier.doubleclassifyInstance(Instance inst) Classifies a given instance.Returns default capabilities of the classifier.Returns the revision string.Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.Returns a string describing classifierstatic voidMain method for testing this classtoString()Prints a description of the classifier.Methods inherited from class weka.classifiers.Classifier
debugTipText, distributionForInstance, forName, getDebug, getOptions, listOptions, makeCopies, makeCopy, setDebug, setOptions
-
Constructor Details
-
Prism
public Prism()
-
-
Method Details
-
globalInfo
Returns a string describing classifier- Returns:
- a description suitable for displaying in the explorer/experimenter gui
-
getTechnicalInformation
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- Specified by:
getTechnicalInformationin interfaceTechnicalInformationHandler- Returns:
- the technical information about this class
-
classifyInstance
Classifies a given instance.- Overrides:
classifyInstancein classClassifier- Parameters:
inst- the instance to be classified- Returns:
- the classification
-
getCapabilities
Returns default capabilities of the classifier.- Specified by:
getCapabilitiesin interfaceCapabilitiesHandler- Overrides:
getCapabilitiesin classClassifier- Returns:
- the capabilities of this classifier
- See Also:
-
buildClassifier
Generates the classifier.- Specified by:
buildClassifierin classClassifier- Parameters:
data- the data to be used- Throws:
Exception- if the classifier can't built successfully
-
toString
Prints a description of the classifier. -
getRevision
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Overrides:
getRevisionin classClassifier- Returns:
- the revision
-
main
Main method for testing this class- Parameters:
args- the commandline parameters
-