V
- Vector typeF
- Feature typepublic class FeatureSelection<V extends FeatureVector<V,F>,F> extends Object implements Projection<V,V>
Modifier and Type | Field and Description |
---|---|
protected ArrayAdapter<F,V> |
adapter
Array adapter
|
private int |
dimensionality
Output dimensionality
|
private V |
factory
Object factory
|
private int |
mindim
Minimum dimensionality required for projection
|
Constructor and Description |
---|
FeatureSelection(int[] dims,
V factory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private static <V extends FeatureVector<V,F>,F> |
getAdapter(V factory)
Choose the best adapter for this.
|
TypeInformation |
getInputDataTypeInformation()
Input type information.
|
SimpleTypeInformation<V> |
getOutputDataTypeInformation()
Output type restriction
|
V |
project(V data)
Project a single instance.
|
private int mindim
private V extends FeatureVector<V,F> factory
private int dimensionality
protected ArrayAdapter<F,V extends FeatureVector<V,F>> adapter
public FeatureSelection(int[] dims, V factory)
dims
- Dimensionsfactory
- Object factorypublic V project(V data)
Projection
project
in interface Projection<V extends FeatureVector<V,F>,V extends FeatureVector<V,F>>
data
- Data to projectprivate static <V extends FeatureVector<V,F>,F> ArrayAdapter<F,? super V> getAdapter(V factory)
factory
- Object factory, for type inferencepublic SimpleTypeInformation<V> getOutputDataTypeInformation()
Projection
getOutputDataTypeInformation
in interface Projection<V extends FeatureVector<V,F>,V extends FeatureVector<V,F>>
public TypeInformation getInputDataTypeInformation()
Projection
getInputDataTypeInformation
in interface Projection<V extends FeatureVector<V,F>,V extends FeatureVector<V,F>>