Skip to content

Commit de354d8

Browse files
authored
Update supervised.rst
The verbose (and almost all other parameters) need to be passed to the constructor and not the .fit() function. This was not refelcted in the example snipplets for LMNN in the docs.
1 parent b3044a8 commit de354d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/supervised.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ indicates :math:`\mathbf{x}_{i}, \mathbf{x}_{j}` belong to different classes,
164164
X = iris_data['data']
165165
Y = iris_data['target']
166166

167-
lmnn = LMNN(n_neighbors=5, learn_rate=1e-6)
168-
lmnn.fit(X, Y, verbose=False)
167+
lmnn = LMNN(n_neighbors=5, learn_rate=1e-6, verbose=False)
168+
lmnn.fit(X, Y)
169169

170170
.. rubric:: References
171171

0 commit comments

Comments
 (0)