Skip to content

Commit

Permalink
removed now unnecessary np.random.seed
Browse files Browse the repository at this point in the history
  • Loading branch information
perib committed Sep 30, 2024
1 parent eb8db5d commit 7e2d3fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions tpot2/tpot_estimator/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,6 @@ def __init__(self,
self.rng = np.random.default_rng(random_state)
# save random state passed to us for other functions that use random_state
self.random_state = random_state
# set the numpy seed so anything using it will be consistent as well
np.random.seed(random_state)

#Initialize other used params

Expand Down
3 changes: 0 additions & 3 deletions tpot2/tpot_estimator/steady_state_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,6 @@ def __init__(self,
self.rng = np.random.default_rng(random_state)
# save random state passed to us for other functions that use random_state
self.random_state = random_state
# set the numpy seed so anything using it will be consistent as well
np.random.seed(random_state)


self.max_evaluated_individuals = max_evaluated_individuals

Expand Down

0 comments on commit 7e2d3fb

Please sign in to comment.