{"action":"created","issue":{"url":"https://api.github.com/repos/rhiever/tpot/issues/37","labels_url":"https://api.github.com/repos/rhiever/tpot/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/rhiever/tpot/issues/37/comments","events_url":"https://api.github.com/repos/rhiever/tpot/issues/37/events","html_url":"https://github.com/rhiever/tpot/pull/37","id":120038293,"number":37,"title":"First pass at pipeline export functionality","user":{"login":"rhiever","id":1719223,"avatar_url":"https://avatars.githubusercontent.com/u/1719223?v=3","gravatar_id":"","url":"https://api.github.com/users/rhiever","html_url":"https://github.com/rhiever","followers_url":"https://api.github.com/users/rhiever/followers","following_url":"https://api.github.com/users/rhiever/following{/other_user}","gists_url":"https://api.github.com/users/rhiever/gists{/gist_id}","starred_url":"https://api.github.com/users/rhiever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhiever/subscriptions","organizations_url":"https://api.github.com/users/rhiever/orgs","repos_url":"https://api.github.com/users/rhiever/repos","events_url":"https://api.github.com/users/rhiever/events{/privacy}","received_events_url":"https://api.github.com/users/rhiever/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rhiever/tpot/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-02T21:20:34Z","updated_at":"2015-12-02T23:56:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rhiever/tpot/pulls/37","html_url":"https://github.com/rhiever/tpot/pull/37","diff_url":"https://github.com/rhiever/tpot/pull/37.diff","patch_url":"https://github.com/rhiever/tpot/pull/37.patch"},"body":"Per #5\r\n\r\nThis PR adds the `export()` function, which allows the user to specify an output file for the pipeline. Once `export()` is called (and a pipeline has already been optimized), this function converts the pipeline into its corresponding Python code and exports it to the specified output file.\r\n\r\nDocs have been updated along with this PR to demonstrate how the `export()` function works.\r\n\r\n@rasbt, I would greatly appreciate if you could review this before we merge it."},"comment":{"url":"https://api.github.com/repos/rhiever/tpot/issues/comments/161470999","html_url":"https://github.com/rhiever/tpot/pull/37#issuecomment-161470999","issue_url":"https://api.github.com/repos/rhiever/tpot/issues/37","id":161470999,"user":{"login":"rasbt","id":5618407,"avatar_url":"https://avatars.githubusercontent.com/u/5618407?v=3","gravatar_id":"","url":"https://api.github.com/users/rasbt","html_url":"https://github.com/rasbt","followers_url":"https://api.github.com/users/rasbt/followers","following_url":"https://api.github.com/users/rasbt/following{/other_user}","gists_url":"https://api.github.com/users/rasbt/gists{/gist_id}","starred_url":"https://api.github.com/users/rasbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasbt/subscriptions","organizations_url":"https://api.github.com/users/rasbt/orgs","repos_url":"https://api.github.com/users/rasbt/repos","events_url":"https://api.github.com/users/rasbt/events{/privacy}","received_events_url":"https://api.github.com/users/rasbt/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T23:56:50Z","updated_at":"2015-12-02T23:56:50Z","body":"> Oh, and let's make sure to close #36 when this is merged. Now when the user ends TPOT early on the command line and they provided an output file, the current best pipeline will be exported.\r\n\r\nSounds cool! Maybe a nice addition would be to refactor the `export`method a bit so that a slimmer \"core\" component can be written to a log-file. This let's the user also conveniently check the progress over time (e.g., via `tail tpot_run_x.log`) or so."}}