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