Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature to Export the Pipeline/Model as pickle file #1342

Open
Ezzaldin97 opened this issue Feb 2, 2024 · 1 comment
Open

Feature to Export the Pipeline/Model as pickle file #1342

Ezzaldin97 opened this issue Feb 2, 2024 · 1 comment

Comments

@Ezzaldin97
Copy link

Hi,

I am trying to use TPOT to automate the training, but one of the problems that I've found is that there is no way to maintain reproducibility by setting the random state to all components in the pipeline that uses random state and exporting it directly as a pickle file.

@perib
Copy link
Contributor

perib commented Apr 22, 2024

you could edit the configuration dictionary in the config file to manually set the random state variable for all estimators that take it. We have a new version of tpot, TPOT2, which does that for you as well. Just have to pass random_state to the TPOTClassifier/TPOTEstimator/TPOTRegressor. https://github.com/EpistasisLab/tpot2

you can also pickle the final pipelines manually. (I prefer to use dill to pickle). The final pipeline is found in the "fitted_pipeline_" attribute of the estimator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants