Skip to content

Commit

Permalink
Merge pull request #1298 from perib/random_state_fix
Browse files Browse the repository at this point in the history
Random state fix
  • Loading branch information
nickotto authored May 18, 2023
2 parents 0b45d0e + a2566ad commit 5277f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpot/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ def _compile_to_sklearn(self, expr):
)
sklearn_pipeline = eval(sklearn_pipeline_str, self.operators_context)
sklearn_pipeline.memory = self._memory
if self.random_state:
if self.random_state is not None:
# Fix random state when the operator allows
set_param_recursive(
sklearn_pipeline.steps, "random_state", self.random_state
Expand Down

0 comments on commit 5277f10

Please sign in to comment.