FoldChangeSelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Bioinformatics

Fold Change-based feature selection for differential analysis.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → FoldChangeSelector<T>

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Fold change measures how much a feature’s average value changes between two groups. A fold change of 2 means the feature is twice as high in one group. Large fold changes indicate features that behave very differently between conditions.

How It Works

Selects features based on fold change (ratio of means) between two conditions. Commonly used in gene expression analysis to identify differentially expressed genes.

Constructors

Constructor Summary
FoldChangeSelector(int nFeaturesToSelect, double minFoldChange, bool logTransform, int[] columnIndices)

Properties

Property Summary
Vector<T> FoldChanges { get; }
Vector<T> Log2FoldChanges { 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)