[idx, weights] = relieff(X, y, k)
[idx, weights] = relieff(X, y, k, Name, Value)
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.
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')
| Version | Description |
|---|---|
| 2.0.0 | initial version |