We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b45d0e + a2566ad commit 5277f10Copy full SHA for 5277f10
tpot/base.py
@@ -1420,7 +1420,7 @@ def _compile_to_sklearn(self, expr):
1420
)
1421
sklearn_pipeline = eval(sklearn_pipeline_str, self.operators_context)
1422
sklearn_pipeline.memory = self._memory
1423
- if self.random_state:
+ if self.random_state is not None:
1424
# Fix random state when the operator allows
1425
set_param_recursive(
1426
sklearn_pipeline.steps, "random_state", self.random_state
0 commit comments