Skip to content

Commit 4e56401

Browse files
update requirements for knn (#2726)
1 parent 133c6a2 commit 4e56401

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/sources/algorithms.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Classification
6767
- For ``algorithm`` == `'brute'`:
6868

6969
all parameters except ``metric`` not in [`'euclidean'`, `'manhattan'`, `'minkowski'`, `'chebyshev'`, `'cosine'`]
70-
- Multi-output and sparse data are not supported
70+
- Multi-output and sparse data are not supported. Number of classes must be at least 2.
7171
* - :obj:`sklearn.linear_model.LogisticRegression`
7272
- All parameters are supported except:
7373

@@ -309,7 +309,7 @@ Classification
309309
- ``algorithm`` != `'brute'`
310310
- ``weights`` = `'callable'`
311311
- ``metric`` not in [`'euclidean'`, `'manhattan'`, `'minkowski'`, `'chebyshev'`, `'cosine'`]
312-
- Only dense data is supported
312+
- Only dense data is supported. Number of classes must be at least 2.
313313
* - :obj:`sklearn.linear_model.LogisticRegression`
314314
- All parameters are supported except:
315315

@@ -505,7 +505,7 @@ Classification
505505
- ``weights`` = `'callable'`
506506
- ``metric`` not in [`'euclidean'`, `'manhattan'`, `'minkowski'`, `'chebyshev'`, `'cosine'`]
507507
- ``predict_proba`` method not supported
508-
- Only dense data is supported
508+
- Only dense data is supported. Number of classes must be at least 2.
509509
* - :obj:`sklearn.linear_model.LogisticRegression`
510510
- All parameters are supported except:
511511

0 commit comments

Comments
 (0)