Skip to content

Commit

Permalink
Update supervised.rst
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DaminK authored Jul 26, 2024
1 parent b3044a8 commit de354d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/supervised.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ indicates :math:`\mathbf{x}_{i}, \mathbf{x}_{j}` belong to different classes,
X = iris_data['data']
Y = iris_data['target']

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

.. rubric:: References

Expand Down

0 comments on commit de354d8

Please sign in to comment.