We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21ab5e1 commit 9d39f57Copy full SHA for 9d39f57
sklearn/neighbors/_nca.py
@@ -56,8 +56,8 @@ class NeighborhoodComponentsAnalysis(
56
57
- `'auto'`
58
Depending on `n_components`, the most reasonable initialization
59
- will be chosen. If `n_components <= n_classes` we use `'lda'`, as
60
- it uses labels information. If not, but
+ is chosen. If `n_components <= min(n_features, n_classes - 1)`
+ we use `'lda'`, as it uses labels information. If not, but
61
`n_components < min(n_features, n_samples)`, we use `'pca'`, as
62
it projects data in meaningful directions (those of higher
63
variance). Otherwise, we just use `'identity'`.
0 commit comments