V
- the type of FeatureVector contained in both the original and
projected data.public abstract class AbstractFeatureSelectionFilter<V extends FeatureVector<?,?>> extends AbstractStreamConversionFilter<V,V>
A ProjectionParser projects the objects of its base parser onto a subspace specified by a BitSet.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractFeatureSelectionFilter.Parameterizer<V extends NumberVector<V,?>>
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
static OptionID |
SELECTED_ATTRIBUTES_ID
Selected attributes parameter.
|
private BitSet |
selectedAttributes
Keeps the selection of the subspace to project onto.
|
column, meta
source
Constructor and Description |
---|
AbstractFeatureSelectionFilter(BitSet selectedAttributes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getDimensionality()
Get the resulting dimensionality.
|
BitSet |
getSelectedAttributes()
Provides a BitSet with the bits set to true corresponding to the selected
attributes in
SELECTED_ATTRIBUTES_ID . |
void |
setSelectedAttributes(BitSet selectedAttributes)
Sets the bits set to true in the given BitSet as selected attributes in
SELECTED_ATTRIBUTES_ID . |
convertedType, data, filterSingleObject, getInputTypeRestriction, getMeta, nextEvent
filter, init
public static final OptionID SELECTED_ATTRIBUTES_ID
Selected attributes parameter.
Key: -projectionfilter.selectedattributes
private BitSet selectedAttributes
public AbstractFeatureSelectionFilter(BitSet selectedAttributes)
selectedAttributes
- public void setSelectedAttributes(BitSet selectedAttributes)
Sets the bits set to true in the given BitSet as selected attributes in
SELECTED_ATTRIBUTES_ID
.
selectedAttributes
- the new selected attributespublic BitSet getSelectedAttributes()
Provides a BitSet with the bits set to true corresponding to the selected
attributes in SELECTED_ATTRIBUTES_ID
.
public int getDimensionality()