EpistasisLab / tpot

A Python Automated Machine Learning tool that optimizes machine learning pipelines using genetic programming.

Home Page:http://epistasislab.github.io/tpot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not deterministic with random_state=0

steffen-limmer opened this issue · comments

TPOT is not deterministic with random_state=0. The reason is that in the
_compile_to_sklearn function it is checked whether random_state is set
with the statement "if self.random_state". This evaluates to False for random_state=0
and should be replaced with "if self.random_state is not None".