FederatedFSSelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Privacy
Federated Feature Selection Selector.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ FederatedFSSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Federated learning keeps data on local devices/servers (clients) and only shares model updates. This selector simulates that by:
- Splitting data into partitions (simulating different clients)
- Computing feature importance locally on each partition
- Aggregating scores across clients without sharing raw data This provides privacy as raw data never leaves its partition.
How It Works
Simulates federated feature selection where data is partitioned across multiple clients, and feature importance is computed locally then aggregated.
Constructors
| Constructor | Summary |
|---|---|
FederatedFSSelector(int nFeaturesToSelect, int nClients, FederatedScoreAggregation aggregationMethod, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
FederatedScoreAggregation AggregationMethod { get; } |
|
Vector<T> AggregatedScores { get; } |
|
bool SupportsInverseTransform { get; } |
|
int NClients { get; } |
|
int NFeaturesToSelect { get; } |
|
int[] SelectedIndices { get; } |
Methods
| Method | Summary |
|---|---|
Matrix<T> FitTransform(Matrix<T> data, Vector<T> target) |
|
bool[] GetSupportMask() |
|
string[] GetFeatureNamesOut(string[] inputFeatureNames) |
|
void Fit(Matrix<T> data, Vector<T> target) |