From fd24297475b4adff6893a79e9b1d9e588b2d819d Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 15 Apr 2025 13:33:28 +0200 Subject: [PATCH] DOC Fix typos --- sklearn/manifold/tests/test_mds.py | 2 +- sklearn/neural_network/tests/test_mlp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sklearn/manifold/tests/test_mds.py b/sklearn/manifold/tests/test_mds.py index b34f030b79895..8a465f0d3c2ab 100644 --- a/sklearn/manifold/tests/test_mds.py +++ b/sklearn/manifold/tests/test_mds.py @@ -22,7 +22,7 @@ def test_smacof(): def test_nonmetric_lower_normalized_stress(): - # Testing that nonmetric MDS results in lower normalized stess compared + # Testing that nonmetric MDS results in lower normalized stress compared # compared to metric MDS (non-regression test for issue 27028) sim = np.array([[0, 5, 3, 4], [5, 0, 2, 2], [3, 2, 0, 1], [4, 2, 1, 0]]) Z = np.array([[-0.266, -0.539], [0.451, 0.252], [0.016, -0.238], [-0.200, 0.524]]) diff --git a/sklearn/neural_network/tests/test_mlp.py b/sklearn/neural_network/tests/test_mlp.py index 417d15b0f6cf2..9dddb78223ea7 100644 --- a/sklearn/neural_network/tests/test_mlp.py +++ b/sklearn/neural_network/tests/test_mlp.py @@ -1073,7 +1073,7 @@ def test_mlp_vs_poisson_glm_equivalent(global_random_seed): assert_allclose(mlp.predict(X), glm.predict(X), rtol=1e-4) # The same does not work with the squared error because the output activation is - # the idendity instead of the exponential. + # the identity instead of the exponential. mlp = MLPRegressor( loss="squared_error", hidden_layer_sizes=(1,),