Package moa.streams.filters
Class SelectAttributesFilter
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.streams.filters.AbstractMultiLabelStreamFilter
-
- moa.streams.filters.SelectAttributesFilter
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,MOAObject
,OptionHandler
,ExampleStream<Example<Instance>>
,MultiLabelStreamFilter
,InstanceStream
,MultiTargetInstanceStream
public class SelectAttributesFilter extends AbstractMultiLabelStreamFilter implements MultiLabelStreamFilter
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected InstancesHeader
dataset
protected Selection
inputsSelected
StringOption
inputStringOption
protected Selection
outputsSelected
StringOption
outputStringOption
-
Fields inherited from class moa.streams.filters.AbstractMultiLabelStreamFilter
inputStream
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description SelectAttributesFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.InstancesHeader
getHeader()
Gets the header of this stream.String
getPurposeString()
Dictionary with option texts and objectsInstanceExample
nextInstance()
Gets the next example from this stream.protected void
restartImpl()
Restarts this filter.-
Methods inherited from class moa.streams.filters.AbstractMultiLabelStreamFilter
estimatedRemainingInstances, hasMoreInstances, isRestartable, prepareForUseImpl, restart, setInputStream
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.capabilities.CapabilitiesHandler
getCapabilities
-
Methods inherited from interface moa.streams.ExampleStream
defineImmutableCapabilities, estimatedRemainingInstances, hasMoreInstances, isRestartable, restart
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
Methods inherited from interface moa.streams.filters.MultiLabelStreamFilter
setInputStream
-
-
-
-
Field Detail
-
dataset
protected InstancesHeader dataset
-
inputsSelected
protected Selection inputsSelected
-
outputsSelected
protected Selection outputsSelected
-
inputStringOption
public StringOption inputStringOption
-
outputStringOption
public StringOption outputStringOption
-
-
Method Detail
-
getPurposeString
public String getPurposeString()
Description copied from class:AbstractOptionHandler
Dictionary with option texts and objects- Specified by:
getPurposeString
in interfaceOptionHandler
- Overrides:
getPurposeString
in classAbstractOptionHandler
- Returns:
- the string with the purpose of this object
-
getHeader
public InstancesHeader getHeader()
Description copied from interface:ExampleStream
Gets the header of this stream. This is useful to know attributes and classes. InstancesHeader is an extension of weka.Instances.- Specified by:
getHeader
in interfaceExampleStream<Example<Instance>>
- Returns:
- the header of this stream
-
nextInstance
public InstanceExample nextInstance()
Description copied from interface:ExampleStream
Gets the next example from this stream.- Specified by:
nextInstance
in interfaceExampleStream<Example<Instance>>
- Returns:
- the next example of this stream
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Specified by:
getDescription
in interfaceMOAObject
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
restartImpl
protected void restartImpl()
Description copied from class:AbstractMultiLabelStreamFilter
Restarts this filter. All instances that extends fromAbstractStreamFilter
must implementrestartImpl
.restart
usesrestartImpl
inAbstractStreamFilter
.- Specified by:
restartImpl
in classAbstractMultiLabelStreamFilter
-
-