FeatureSelectorHelper<T, TInput>
Helpers & Utilities · AiDotNet.FeatureSelectors
Provides common helper methods for feature selection algorithms.
For Beginners
This class contains shared functionality that different feature selection methods can use. It helps avoid duplicating code and keeps the feature selectors more focused on their specific selection strategies rather than common data handling tasks.
Methods
| Method | Summary |
|---|---|
TInput CreateFeatureSubset(TInput originalData, List<int> featureIndices) |
Creates a subset of features from the original input data. |
TInput CreateFilteredData(TInput originalData, List<int> selectedFeatureIndices) |
Creates a new data structure containing only the selected features. |
Vector<T> ExtractFeatureVector(TInput input, int featureIndex, int numSamples, FeatureExtractionStrategy higherDimensionStrategy, Dictionary<int, T> dimensionWeights) |
Extracts a feature vector from the input data. |
void CopyFeature(Tensor<T> source, Tensor<T> destination, int sampleIndex, int sourceFeatureIndex, int destFeatureIndex) |
Copies a feature from the source tensor to the destination tensor. |