Class Transpose
java.lang.Object
weka.filters.Filter
weka.filters.SimpleFilter
weka.filters.SimpleBatchFilter
weka.filters.unsupervised.attribute.Transpose
- All Implemented Interfaces:
Serializable
,CapabilitiesHandler
,CapabilitiesIgnorer
,CommandlineRunnable
,OptionHandler
,RevisionHandler
,WeightedAttributesHandler
,WeightedInstancesHandler
,UnsupervisedFilter
public class Transpose
extends SimpleBatchFilter
implements UnsupervisedFilter, WeightedAttributesHandler, WeightedInstancesHandler
Transposes the data: instances become attributes and attributes become instances. If the first attribute in the
original data is a nominal or string identifier attribute, this identifier attribute will be used to create attribute
names in the transposed data. All attributes other than the identifier attribute must be numeric. The attribute names
in the original data are used to create an identifier attribute of type string in the transposed data.
This filter can only process one batch of data, e.g., it cannot be used in the the FilteredClassifier.
This filter can only be applied when no class attribute has been set.
Date values will be turned into simple numeric values.
This filter can only process one batch of data, e.g., it cannot be used in the the FilteredClassifier.
This filter can only be applied when no class attribute has been set.
Date values will be turned into simple numeric values.
- Version:
- $Revision: 10215 $
- Author:
- Eibe Frank
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Capabilities of this filter.Returns the revision string.Returns a string describing this filter.static void
runs the filter with the given argumentsMethods inherited from class weka.filters.SimpleBatchFilter
allowAccessToFullInputFormat, batchFinished, input, input
Methods inherited from class weka.filters.SimpleFilter
setInputFormat
Methods inherited from class weka.filters.Filter
batchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOptions, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, listOptions, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, setOptions, toString, useFilter, wekaStaticWrapper
-
Constructor Details
-
Transpose
public Transpose()
-
-
Method Details
-
globalInfo
Returns a string describing this filter.- Specified by:
globalInfo
in classSimpleFilter
- Returns:
- a description of the filter suitable for displaying in the explorer/experimenter gui
-
getCapabilities
Returns the Capabilities of this filter.- Specified by:
getCapabilities
in interfaceCapabilitiesHandler
- Overrides:
getCapabilities
in classFilter
- Returns:
- the capabilities of this object
- See Also:
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classFilter
- Returns:
- the revision
-
main
runs the filter with the given arguments- Parameters:
args
- the commandline arguments
-