public class MultiClassFLDA extends SimpleBatchFilter implements OptionHandler, WeightedInstancesHandler
-R The ridge parameter to add to the diagonal of the pooled within-class scatter matrix. (default is 1e-6)
| Modifier and Type | Field and Description |
|---|---|
protected double |
m_Ridge
Ridge parameter
|
protected no.uib.cipr.matrix.Matrix |
m_WeightingMatrix
Stores the weighting matrix.
|
m_Debug, m_DoNotCheckCapabilities, m_FirstBatchDone, m_InputRelAtts, m_InputStringAtts, m_NewBatch, m_OutputRelAtts, m_OutputStringAtts| Constructor and Description |
|---|
MultiClassFLDA() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAccessToFullInputFormat()
Returns whether to allow the determineOutputFormat(Instances) method access
to the full dataset rather than just the header.
|
protected no.uib.cipr.matrix.Vector |
computeMean(Instances data,
double[] totalWeight,
int aI)
Computes the mean vector for the given dataset.
|
protected Instances |
determineOutputFormat(Instances inputFormat)
Determines the output format for the data that is produced by this filter.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
java.lang.String[] |
getOptions()
Gets the current settings of IBk.
|
java.lang.String |
getRevision()
Returns the revision string.
|
double |
getRidge()
Get the value of Ridge.
|
java.lang.String |
globalInfo()
Provides information regarding this class.
|
protected no.uib.cipr.matrix.Vector |
instanceToVector(Instance inst)
Turns an instance with a class into a vector without a class.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] argv)
Main method for testing this class.
|
protected Instances |
process(Instances instances)
Takes a batch of data and transforms it.
|
java.lang.String |
ridgeTipText()
Returns the tip text for this property
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setRidge(double newRidge)
Set the value of Ridge.
|
batchFinished, hasImmediateOutputFormat, inputreset, setInputFormatbatchFilterFile, bufferInput, copyValues, copyValues, debugTipText, doNotCheckCapabilitiesTipText, filterFile, flushInput, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getInputFormat, getOutputFormat, initInputLocators, initOutputLocators, inputFormatPeek, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputFormatPeek, outputPeek, postExecution, preExecution, push, push, resetQueue, run, runFilter, setDebug, setDoNotCheckCapabilities, setOutputFormat, testInputFormat, toString, useFilter, wekaStaticWrapperprotected no.uib.cipr.matrix.Matrix m_WeightingMatrix
protected double m_Ridge
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilitiespublic java.lang.String globalInfo()
globalInfo in class SimpleFilterpublic java.lang.String ridgeTipText()
public double getRidge()
public void setRidge(double newRidge)
newRidge - Value to assign to Ridge.public java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class Filterpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
-R The ridge parameter to add to the diagonal of the pooled within-class scatter matrix. (default is 1e-6)
setOptions in interface OptionHandlersetOptions in class Filteroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Filterpublic boolean allowAccessToFullInputFormat()
allowAccessToFullInputFormat in class SimpleBatchFilterprotected no.uib.cipr.matrix.Vector computeMean(Instances data, double[] totalWeight, int aI)
protected no.uib.cipr.matrix.Vector instanceToVector(Instance inst)
protected Instances determineOutputFormat(Instances inputFormat) throws java.lang.Exception
determineOutputFormat in class SimpleFilterinputFormat - the input format to base the output format onjava.lang.Exception - if a problem occurs when the output format is generatedSimpleFilter.hasImmediateOutputFormat(),
Filter.batchFinished()protected Instances process(Instances instances) throws java.lang.Exception
process in class SimpleFilterinstances - the data to processjava.lang.Exception - is thrown if a problem occursFilter.batchFinished()public java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(java.lang.String[] argv)
argv - should contain arguments to the filter: use -h for help