From 04df790be809f780aae09b38a1e66aeca2b10031 Mon Sep 17 00:00:00 2001 From: rprkh Date: Mon, 1 Aug 2022 14:41:29 +0530 Subject: [PATCH] fix init ndarray shape --- sklearn/manifold/_mds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/manifold/_mds.py b/sklearn/manifold/_mds.py index f90097cc9d426..7b056d37a82b7 100644 --- a/sklearn/manifold/_mds.py +++ b/sklearn/manifold/_mds.py @@ -561,7 +561,7 @@ def fit_transform(self, X, y=None, init=None): y : Ignored Not used, present for API consistency by convention. - init : ndarray of shape (n_samples,), default=None + init : ndarray of shape (n_samples, n_components), default=None Starting configuration of the embedding to initialize the SMACOF algorithm. By default, the algorithm is initialized with a randomly chosen array.