public class DoubleVectorRandomProjectionFilter extends AbstractRandomFeatureSelectionFilter<DoubleVector>
Parser to project the ParsingResult obtained by a suitable base parser onto a randomly selected subset of attributes.
Modifier and Type | Class and Description |
---|---|
static class |
DoubleVectorRandomProjectionFilter.Parameterizer
Parameterization class.
|
BundleStreamSource.Event
k, NUMBER_SELECTED_ATTRIBUTES_ID, random, SEED_ID, selectedAttributes
column, meta
source
Constructor and Description |
---|
DoubleVectorRandomProjectionFilter(int dim,
long seed)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected SimpleTypeInformation<? super DoubleVector> |
convertedType(SimpleTypeInformation<DoubleVector> in)
Get the output type from the input type after conversion.
|
protected DoubleVector |
filterSingleObject(DoubleVector obj)
Normalize a single instance.
|
protected SimpleTypeInformation<? super DoubleVector> |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
initializeRandomAttributes
data, getMeta, nextEvent
filter, init
public DoubleVectorRandomProjectionFilter(int dim, long seed)
dim
- seed
- protected DoubleVector filterSingleObject(DoubleVector obj)
AbstractStreamConversionFilter
filterSingleObject
in class AbstractStreamConversionFilter<DoubleVector,DoubleVector>
obj
- Database object to normalizeprotected SimpleTypeInformation<? super DoubleVector> getInputTypeRestriction()
AbstractStreamConversionFilter
getInputTypeRestriction
in class AbstractStreamConversionFilter<DoubleVector,DoubleVector>
protected SimpleTypeInformation<? super DoubleVector> convertedType(SimpleTypeInformation<DoubleVector> in)
AbstractStreamConversionFilter
convertedType
in class AbstractStreamConversionFilter<DoubleVector,DoubleVector>
in
- input type restriction