{"action":"created","issue":{"url":"https://api.github.com/repos/rhiever/tpot/issues/117","repository_url":"https://api.github.com/repos/rhiever/tpot","labels_url":"https://api.github.com/repos/rhiever/tpot/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/rhiever/tpot/issues/117/comments","events_url":"https://api.github.com/repos/rhiever/tpot/issues/117/events","html_url":"https://github.com/rhiever/tpot/issues/117","id":142161992,"number":117,"title":"Replace combine_dfs operator functionality with sklearn's FeatureUnion","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"},{"url":"https://api.github.com/repos/rhiever/tpot/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-03-20T13:03:56Z","updated_at":"2016-06-02T17:15:15Z","closed_at":null,"body":"Currently, combine_dfs uses custom code to combine the features from separate pipelines into a single feature set. We should instead use sklearn's [FeatureUnion](http://scikit-learn.org/dev/modules/pipeline.html#featureunion-composite-feature-spaces) function within combine_dfs, which I believe will do a better and more efficient job of combining the features.\r\n\r\nHere's an example provided by @amueller:\r\n\r\n```python\r\nPipeline(make_union(PolynomialFeatures(), PCA()), RFE(RandomForestClassifier()))\r\n```"},"comment":{"url":"https://api.github.com/repos/rhiever/tpot/issues/comments/223359001","html_url":"https://github.com/rhiever/tpot/issues/117#issuecomment-223359001","issue_url":"https://api.github.com/repos/rhiever/tpot/issues/117","id":223359001,"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},"created_at":"2016-06-02T17:15:15Z","updated_at":"2016-06-02T17:15:15Z","body":"So we could do something like:\r\n\r\n```\r\nmake_pipeline(make_union(PolynomialFeatures(), VotingClassifier(estimators=['rf1', RandomForestClassifier()])), RFE(estimator=SVC(kernel='linear')), RandomForestClassifier())\r\n```\r\n\r\nif we wanted RF classification at the end of the pipeline."}}
{"actor":{"display_login":"rhiever"}}