|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.AbstractClassifier
weka.classifiers.rules.Prism
public class Prism
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.
@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
Constructor Summary | |
---|---|
Prism()
|
Method Summary | |
---|---|
void |
buildClassifier(Instances data)
Generates the classifier. |
double |
classifyInstance(Instance inst)
Classifies a given instance. |
Capabilities |
getCapabilities()
Returns default capabilities of the classifier. |
java.lang.String |
getRevision()
Returns the revision string. |
TechnicalInformation |
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. |
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.AbstractClassifier |
---|
debugTipText, distributionForInstance, forName, getDebug, getOptions, listOptions, makeCopies, makeCopy, runClassifier, 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 TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public double classifyInstance(Instance inst)
classifyInstance
in interface Classifier
classifyInstance
in class AbstractClassifier
inst
- the instance to be classified
public Capabilities getCapabilities()
getCapabilities
in interface Classifier
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class AbstractClassifier
public void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier
in interface 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 java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class AbstractClassifier
public static void main(java.lang.String[] args)
args
- the commandline parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |