public class OLM
extends weka.classifiers.AbstractClassifier
implements weka.core.OptionHandler, weka.core.TechnicalInformationHandler
BibTeX:
@article{Ben-David1992, author = {Arie Ben-David}, journal = {Decision Sciences}, pages = {1357-1372}, title = {Automatic Generation of Symbolic Multiattribute Ordinal Knowledge-Based DSSs: methodology and Applications}, volume = {23}, year = {1992} }
Valid options are:
-R <integer> The resolution mode. Valid values are: 0 for conservative resolution, 1 for random resolution, 2 for average, and 3 for no resolution. (default 0).
-C <integer> The classification mode. Valid values are: 0 for conservative classification, 1 for nearest neighbour classification. (default 0).
-U <size> SSet maximum size of rule base (default: -U <number of examples>)
Modifier and Type | Field and Description |
---|---|
static int |
CLASSIFICATION_CONSERVATIVE |
static int |
CLASSIFICATION_NEARESTNEIGHBOUR |
static int |
RESOLUTION_AVERAGE |
static int |
RESOLUTION_CONSERVATIVE |
static int |
RESOLUTION_NONE |
static int |
RESOLUTION_RANDOM |
static weka.core.Tag[] |
TAGS_CLASSIFICATION |
static weka.core.Tag[] |
TAGS_RESOLUTION |
Constructor and Description |
---|
OLM() |
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(weka.core.Instances data)
Generates the classifier.
|
java.lang.String |
classificationModeTipText()
Returns the tip text for this property
|
double |
classifyInstance(weka.core.Instance inst)
Classifies a given instance.
|
weka.core.Capabilities |
getCapabilities()
Returns default capabilities of the classifier.
|
weka.core.SelectedTag |
getClassificationMode()
Gets the classification mode.
|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
weka.core.SelectedTag |
getResolutionMode()
Gets the resolution mode.
|
java.lang.String |
getRevision()
Returns the revision string.
|
int |
getRuleSize() |
weka.core.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 the classifier.
|
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options
Valid options are:
|
static void |
main(java.lang.String[] args)
Main method for testing this class
|
java.lang.String |
resolutionModeTipText()
Returns the tip text for this property
|
java.lang.String |
ruleSizeTipText()
Returns the tip text for this property
|
void |
setClassificationMode(weka.core.SelectedTag newMethod)
Sets the classification mode.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setResolutionMode(weka.core.SelectedTag newMethod)
Sets the resolution mode.
|
void |
setRuleSize(int s) |
java.lang.String |
toString()
Prints a description of the classifier.
|
batchSizeTipText, debugTipText, distributionForInstance, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
public static final int RESOLUTION_NONE
public static final int RESOLUTION_AVERAGE
public static final int RESOLUTION_RANDOM
public static final int RESOLUTION_CONSERVATIVE
public static final weka.core.Tag[] TAGS_RESOLUTION
public static final int CLASSIFICATION_CONSERVATIVE
public static final int CLASSIFICATION_NEARESTNEIGHBOUR
public static final weka.core.Tag[] TAGS_CLASSIFICATION
public weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.classifiers.Classifier
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class weka.classifiers.AbstractClassifier
public java.lang.String globalInfo()
public weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface weka.core.TechnicalInformationHandler
public double classifyInstance(weka.core.Instance inst)
classifyInstance
in interface weka.classifiers.Classifier
classifyInstance
in class weka.classifiers.AbstractClassifier
inst
- the instance to be classifiedpublic java.util.Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.classifiers.AbstractClassifier
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-R <integer> The resolution mode. Valid values are: 0 for conservative resolution, 1 for random resolution, 2 for average, and 3 for no resolution. (default 0).
-C <integer> The classification mode. Valid values are: 0 for conservative classification, 1 for nearest neighbour classification. (default 0).
-U <size> SSet maximum size of rule base (default: -U <number of examples>)
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.classifiers.AbstractClassifier
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.classifiers.AbstractClassifier
public java.lang.String resolutionModeTipText()
public void setResolutionMode(weka.core.SelectedTag newMethod)
newMethod
- the new evaluation mode.public weka.core.SelectedTag getResolutionMode()
public void setClassificationMode(weka.core.SelectedTag newMethod)
newMethod
- the new classification mode.public weka.core.SelectedTag getClassificationMode()
public java.lang.String classificationModeTipText()
public java.lang.String ruleSizeTipText()
public int getRuleSize()
public void setRuleSize(int s)
public void buildClassifier(weka.core.Instances data) throws java.lang.Exception
buildClassifier
in interface weka.classifiers.Classifier
data
- the data to be usedjava.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 weka.core.RevisionHandler
getRevision
in class weka.classifiers.AbstractClassifier
public static void main(java.lang.String[] args)