public class SparseNumberVectorProjectionFilter<V extends SparseNumberVector<V,?>> extends AbstractFeatureSelectionFilter<V>
Parser to project the ParsingResult obtained by a suitable base parser onto a selected subset of attributes.
Modifier and Type | Class and Description |
---|---|
static class |
SparseNumberVectorProjectionFilter.Parameterizer<V extends SparseNumberVector<V,?>>
Parameterization class.
|
BundleStreamSource.Event
SELECTED_ATTRIBUTES_ID
column, meta
source
Constructor and Description |
---|
SparseNumberVectorProjectionFilter(BitSet selectedAttributes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected SimpleTypeInformation<? super V> |
convertedType(SimpleTypeInformation<V> in)
Get the output type from the input type after conversion.
|
protected V |
filterSingleObject(V obj)
Normalize a single instance.
|
protected SimpleTypeInformation<? super V> |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
getDimensionality, getSelectedAttributes, setSelectedAttributes
data, getMeta, nextEvent
filter, init
public SparseNumberVectorProjectionFilter(BitSet selectedAttributes)
selectedAttributes
- protected V filterSingleObject(V obj)
AbstractStreamConversionFilter
filterSingleObject
in class AbstractStreamConversionFilter<V extends SparseNumberVector<V,?>,V extends SparseNumberVector<V,?>>
obj
- Database object to normalizeprotected SimpleTypeInformation<? super V> getInputTypeRestriction()
AbstractStreamConversionFilter
getInputTypeRestriction
in class AbstractStreamConversionFilter<V extends SparseNumberVector<V,?>,V extends SparseNumberVector<V,?>>
protected SimpleTypeInformation<? super V> convertedType(SimpleTypeInformation<V> in)
AbstractStreamConversionFilter
convertedType
in class AbstractStreamConversionFilter<V extends SparseNumberVector<V,?>,V extends SparseNumberVector<V,?>>
in
- input type restriction