We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4698481 commit aa53fdbCopy full SHA for aa53fdb
sklearn/manifold/mds.py
@@ -274,6 +274,7 @@ def smacof(similarities, metric=True, n_components=2, init=None, n_init=8,
274
else:
275
return best_pos, best_stress
276
277
+
278
class MDS(BaseEstimator):
279
"""Multidimensional scaling
280
@@ -366,7 +367,8 @@ def fit(self, X, init=None, y=None):
366
367
368
Parameters
369
----------
- X : array, shape=[n_samples, n_features]
370
+ X : array, shape=[n_samples, n_features], or [n_samples, n_samples] \
371
+ if dissimilarity='precomputed'
372
Input data.
373
374
init : {None or ndarray, shape (n_samples,)}, optional
@@ -382,7 +384,8 @@ def fit_transform(self, X, init=None, y=None):
382
384
383
385
386
387
388
389
390
391
0 commit comments