SAM<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Bioinformatics

Significance Analysis of Microarrays (SAM) for feature selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

SAM was designed for gene expression data where we want to find genes that behave differently between conditions (e.g., healthy vs disease). It uses permutation testing to estimate how many “significant” genes we’d find just by chance, helping control false positives.

How It Works

SAM uses a modified t-statistic with a fudge factor to identify significantly differentially expressed genes. It controls the false discovery rate (FDR) using permutation-based estimation.

Constructors

Constructor Summary
SAM(int nFeaturesToSelect, int nPermutations, double fdrThreshold, double s0Percentile, int? randomState, int[] columnIndices)

Properties

Property Summary
Vector<T> DStatistics { get; }
Vector<T> FDR { get; }
Vector<T> QValues { 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)