QuantumInspiredSelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Quantum

Quantum-Inspired Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

This method is inspired by quantum computing principles. Each feature is represented by a “qubit” that can be in a superposition of selected and not-selected states. The algorithm evolves these quantum states to find the best feature subset, exploring many possibilities simultaneously.

How It Works

Uses quantum-inspired optimization with quantum bits (qubits) represented as probability amplitudes to search the feature subset space.

Constructors

Constructor Summary
QuantumInspiredSelector(int nFeaturesToSelect, int populationSize, int nGenerations, double rotationAngle, int[] columnIndices)

Properties

Property Summary
Vector<T> FeatureScores { 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)