8000 Remove obsolete reference to dbscan.random_state (#9120) · plagree/scikit-learn@7ab0a96 · GitHub
[go: up one dir, main page]

8000 Skip to content

Commit 7ab0a96

Browse files
jnothmanagramfort
authored andcommitted
Remove obsolete reference to dbscan.random_state (scikit-learn#9120)
1 parent 93563b0 commit 7ab0a96

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sklearn/utils/testing.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -627,13 +627,7 @@ def is_abstract(c):
627627

628628
def set_random_state(estimator, random_state=0):
629629
"""Set random state of an estimator if it has the `random_state` param.
630-
631-
Classes for whom random_state is deprecated are ignored. Currently DBSCAN
632-
is one such class.
633630
"""
634-
if isinstance(estimator, DBSCAN):
635-
return
636-
637631
if "random_state" in estimator.get_params():
638632
estimator.set_params(random_state=random_state)
639633

0 commit comments

Comments
 (0)
0