relieff
Rank predictor importance using ReliefF.
📝Syntax
[idx, weights] = relieff(X, y, k)
[idx, weights] = relieff(X, y, k, Name, Value)
📄Description

relieff ranks predictors using nearest-neighbor ReliefF for classification or an RReliefF-style score for regression.

Supported name-value options are Method, Prior, Updates, CategoricalX, and Sigma. idx contains predictor indices ordered by decreasing importance. weights contains one score per predictor.

💡Examples
X = [0 0; 0 1; 1 0; 1 1; 3 0; 3 1];
y = [1; 1; 1; 1; 2; 2];
[idx, weights] = relieff(X, y, 1, 'Method', 'classification')
🔗See Also
knnsearchpca
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub