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

.export() to something else than a file #938

Closed
gosuto-inzasheru opened this issue Oct 26, 2019 · 2 comments
Closed

.export() to something else than a file #938

gosuto-inzasheru opened this issue Oct 26, 2019 · 2 comments

Comments

@gosuto-inzasheru
Copy link
Contributor

Sometimes running this library on hosted instances instead of local machines, the process of exporting to .py file is not always optimal. I might not have access to file output or they can get wiped after closing sessions.

An alternative way of reporting the best performing pipeline so far would be via stdout. For example, whenever a new best performing pipeline is found during the fitting process, a simple output of the make_pipeline([...]) and its performance measure would suffice.

Is there something I am missing that already makes this possible? I could not find anything in the documentation in regards to the .export() function besides that it takes a string as a parameter for the output file.

@gosuto-inzasheru
Copy link
Contributor Author

gosuto-inzasheru commented Oct 26, 2019

Found a demo code block by @weixuanfu at #337 (comment). I think adding a flag to .export() which would run something along the lines of that demo and thus print the generate_pipeline_code to screen instead of to file would be exactly what I am looking for!

Edit: Actually, this might be as simple as setting a boolean flag which would print to screen instead of to file.

@weixuanfu
Copy link
Contributor

The issue has been fixed in a new version of TPOT (v0.11.0). Please feel free to reopen it if you have any questions or suggestions.

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

No branches or pull requests

2 participants