Skip to content

Commit 5277f10

Browse files
authored
Merge pull request #1298 from perib/random_state_fix
Random state fix
2 parents 0b45d0e + a2566ad commit 5277f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tpot/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ def _compile_to_sklearn(self, expr):
14201420
)
14211421
sklearn_pipeline = eval(sklearn_pipeline_str, self.operators_context)
14221422
sklearn_pipeline.memory = self._memory
1423-
if self.random_state:
1423+
if self.random_state is not None:
14241424
# Fix random state when the operator allows
14251425
set_param_recursive(
14261426
sklearn_pipeline.steps, "random_state", self.random_state

0 commit comments

Comments
 (0)