|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.Classifier
weka.classifiers.functions.PLSClassifier
public class PLSClassifier
A wrapper classifier for the PLSFilter, utilizing the PLSFilter's ability to perform predictions.
Valid options are:-filter <filter specification> The PLS filter to use. Full classname of filter to include, followed by scheme options. (default: weka.filters.supervised.attribute.PLSFilter)
-D If set, classifier is run in debug mode and may output additional info to the console
Options specific to filter weka.filters.supervised.attribute.PLSFilter ('-filter'):
-D Turns on output of debugging information.
-C <num> The number of components to compute. (default: 20)
-U Updates the class attribute as well. (default: off)
-M Turns replacing of missing values on. (default: off)
-A <SIMPLS|PLS1> The algorithm to use. (default: PLS1)
-P <none|center|standardize> The type of preprocessing that is applied to the data. (default: center)
| Constructor Summary | |
|---|---|
PLSClassifier()
|
|
| Method Summary | |
|---|---|
void |
buildClassifier(Instances data)
builds the classifier |
double |
classifyInstance(Instance instance)
Classifies the given test instance. |
java.lang.String |
filterTipText()
Returns the tip text for this property |
Capabilities |
getCapabilities()
Returns default capabilities of the classifier. |
Filter |
getFilter()
Get the PLS filter. |
java.lang.String[] |
getOptions()
returns the options of the current setup |
java.lang.String |
getRevision()
Returns the revision string. |
java.lang.String |
globalInfo()
Returns a string describing classifier |
java.util.Enumeration |
listOptions()
Gets an enumeration describing the available options. |
static void |
main(java.lang.String[] args)
Main method for running this classifier from commandline. |
void |
setFilter(Filter value)
Set the PLS filter (only used for setup). |
void |
setOptions(java.lang.String[] options)
Parses the options for this object. |
java.lang.String |
toString()
returns a string representation of the 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 PLSClassifier()
| Method Detail |
|---|
public java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class Classifierpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Classifier
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
-filter <filter specification> The PLS filter to use. Full classname of filter to include, followed by scheme options. (default: weka.filters.supervised.attribute.PLSFilter)
-D If set, classifier is run in debug mode and may output additional info to the console
Options specific to filter weka.filters.supervised.attribute.PLSFilter ('-filter'):
-D Turns on output of debugging information.
-C <num> The number of components to compute. (default: 20)
-U Updates the class attribute as well. (default: off)
-M Turns replacing of missing values on. (default: off)
-A <SIMPLS|PLS1> The algorithm to use. (default: PLS1)
-P <none|center|standardize> The type of preprocessing that is applied to the data. (default: center)
setOptions in interface OptionHandlersetOptions in class Classifieroptions - the options to use
java.lang.Exception - if setting of options failspublic java.lang.String filterTipText()
public void setFilter(Filter value)
throws java.lang.Exception
value - the kernel filter.
java.lang.Exception - if not PLSFilterpublic Filter getFilter()
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ClassifierCapabilities
public void buildClassifier(Instances data)
throws java.lang.Exception
buildClassifier in class Classifierdata - the training instances
java.lang.Exception - if something goes wrong
public double classifyInstance(Instance instance)
throws java.lang.Exception
classifyInstance in class Classifierinstance - the instance to be classified
java.lang.Exception - if an error occurred during the predictionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Classifierpublic static void main(java.lang.String[] args)
args - the options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||