Closed lmsanch closed 4 years ago
@lmsanch there are some related updates in version 0.11 (please see the release log here).
The set_param_recursive function has been moved to tpot.export_utils. You may import it via from tpot.export_utils import set_param_recursive
. About random_state
, TPOT v0.11 does not use fixed random seed 42 for evaluating pipelines but use the random seed set by random_state
parameter instead. If random_state=None, then the results may not be reproduced.
Thanks
I am running version 0.11.0 of TPOT and had developed a function that leveraged some of the properties of tpot after training.
I was using `tpot_obj._set_param_recursive(sklearn_pipeline.steps, 'random_state', 42) similar to the solution that @weixuanfu posted a while ago.
Originally posted by @weixuanfu in https://github.com/EpistasisLab/tpot/issues/886#issuecomment-510461961
he issue I have now is that my code does not work because it seems that ._set_param_recursive was removed. Is there any other attribute that performs the same task? How can I replicate the functionality of the line above with whatever replaced _set_param_recursive? If there isn't anything, how can I downgrade tpot to the last version that had ._set_param_recursive? Thanks