|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.Classifier
weka.classifiers.misc.MinMaxExtension
public class MinMaxExtension
This class is an implementation of the minimal and maximal extension.
All attributes and the class are assumed to be ordinal. The order of the ordinal attributes is determined by the internal codes used by WEKA.
Further information regarding these algorithms can be found in:
S. Lievens, B. De Baets, K. Cao-Van (2006). A Probabilistic Framework for the Design of Instance-Based Supervised Ranking Algorithms in an Ordinal Setting. Annals of Operations Research..
Kim Cao-Van (2003). Supervised ranking: from semantics to algorithms.
Stijn Lievens (2004). Studie en implementatie van instantie-gebaseerde algoritmen voor gesuperviseerd rangschikken.
For more information about supervised ranking, see
http://users.ugent.be/~slievens/supervised_ranking.php
@article{Lievens2006, author = {S. Lievens and B. De Baets and K. Cao-Van}, journal = {Annals of Operations Research}, title = {A Probabilistic Framework for the Design of Instance-Based Supervised Ranking Algorithms in an Ordinal Setting}, year = {2006} } @phdthesis{Cao-Van2003, author = {Kim Cao-Van}, school = {Ghent University}, title = {Supervised ranking: from semantics to algorithms}, year = {2003} } @mastersthesis{Lievens2004, author = {Stijn Lievens}, school = {Ghent University}, title = {Studie en implementatie van instantie-gebaseerde algoritmen voor gesuperviseerd rangschikken}, year = {2004} }Valid options are:
-D If set, classifier is run in debug mode and may output additional info to the console
-M Use maximal extension (default: minimal extension)
Constructor Summary | |
---|---|
MinMaxExtension()
|
Method Summary | |
---|---|
void |
buildClassifier(Instances instances)
Builds the classifier. |
double |
classifyInstance(Instance instance)
Classifies the given instance. |
Capabilities |
getCapabilities()
Returns default capabilities of the classifier. |
boolean |
getMinMaxExtension()
Return if the minimal extension is in effect. |
java.lang.String[] |
getOptions()
Gets the current settings of this classifier. |
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()
Produces an enumeration describing the available options for this classifier. |
static void |
main(java.lang.String[] args)
Main method for testing this class and for using it from the command line. |
java.lang.String |
minMaxExtensionTipText()
Returns the tip text for this property. |
void |
setMaxExtension()
After calling this method, the next classification will use the maximal extension. |
void |
setMinExtension()
After calling this method, the next classification will use the minimal extension. |
void |
setMinMaxExtension(boolean min)
Chooses between the minimal and maximal extension of the algorithm. |
void |
setOptions(java.lang.String[] options)
Parses the options for this object. |
java.lang.String |
toString()
returns a string representation of this classifier |
Methods inherited from class weka.classifiers.Classifier |
---|
debugTipText, distributionForInstance, forName, getDebug, makeCopies, makeCopy, setDebug |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MinMaxExtension()
Method Detail |
---|
public java.lang.String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class Classifier
Capabilities
public void buildClassifier(Instances instances) throws java.lang.Exception
buildClassifier
in class Classifier
instances
- the training examples
java.lang.Exception
- if the classifier is not able to handle the
instances
.public double classifyInstance(Instance instance)
classifyInstance
in class Classifier
instance
- the instance to be classified
public void setMinExtension()
public void setMaxExtension()
public java.lang.String minMaxExtensionTipText()
public boolean getMinMaxExtension()
true
if the minimal is in effect,
false
otherwisepublic void setMinMaxExtension(boolean min)
min
is true
then the minimal extension
wil be in effect, otherwise it will the maximal extension.
min
- do we choose the minimal extensionpublic void setOptions(java.lang.String[] options) throws java.lang.Exception
-D If set, classifier is run in debug mode and may output additional info to the console
-M Use maximal extension (default: minimal extension)
setOptions
in interface OptionHandler
setOptions
in class Classifier
options
- an array of strings containing the options for the classifier
java.lang.Exception
- ifpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Classifier
setOptions
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class Classifier
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- array of options for both the classifier
MinMaxExtension
and for evaluateModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |