BayesianNetworkSelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Bayesian
Bayesian Network structure-based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ BayesianNetworkSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
A Bayesian network shows how variables depend on each other. This selector finds features that have direct probabilistic relationships with the target - these are the features that matter most for prediction.
How It Works
Selects features based on their connections in a learned Bayesian network structure, identifying features directly connected to the target.
Constructors
| Constructor | Summary |
|---|---|
BayesianNetworkSelector(int nFeaturesToSelect, int maxParents, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> ConnectionStrengths { get; } |
|
bool SupportsInverseTransform { get; } |
|
int MaxParents { 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) |