Skip to content

Commit 47305c0

Browse files
committed
FIX random_state in MDS was not initialized properly
1 parent 5fbb227 commit 47305c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/manifold/mds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def __init__(self, n_components=2, metric=True, n_init=4,
336336
self.eps = eps
337337
self.verbose = verbose
338338
self.n_jobs = n_jobs
339-
self.random_state = None
339+
self.random_state = random_state
340340

341341
def fit(self, X, init=None, y=None):
342342
"""

0 commit comments

Comments
 (0)