BayesianModelAveraging<T>

Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Bayesian

Bayesian Model Averaging Feature Selection.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ†’ BayesianModelAveraging<T>

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Instead of picking one best model, BMA considers all possible models and weights them by how likely each is. Features that appear in many high-probability models are selected.

How It Works

Selects features based on their posterior inclusion probabilities across all possible models, weighted by model posterior probabilities.

Constructors

Constructor Summary
BayesianModelAveraging(int nFeaturesToSelect, int nModels, double priorInclusion, int[] columnIndices)

Properties

Property Summary
Vector<T> InclusionProbabilities { get; }
bool SupportsInverseTransform { 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)