From de354d89f74909910ffd563a657c737b7b24fea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damin=20K=C3=BChn?= Date: Fri, 26 Jul 2024 17:43:14 +0200 Subject: [PATCH] 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. --- doc/supervised.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/supervised.rst b/doc/supervised.rst index a847a33c..49548b83 100644 --- a/doc/supervised.rst +++ b/doc/supervised.rst @@ -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