Skip to content

Commit 8fb6872

Browse files
authored
Update supervised.rst (#356)
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 8fb6872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/supervised.rst

+2-2
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)