{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/3886","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/3886/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/3886/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/3886/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/3886","id":50074329,"number":3886,"title":"[MRG+1-1] Add transform fields option to FeatureUnion","user":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2014-11-25T19:44:40Z","updated_at":"2015-04-13T23:23:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/3886","html_url":"https://github.com/scikit-learn/scikit-learn/pull/3886","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/3886.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/3886.patch"},"body":"Fixes #2034.\r\n\r\nTodo:\r\n* [x] Docstrings\r\n* [x] Simple example\r\n* [x] Test\r\n\r\nAlso see [here](http://zacstewart.com/2014/08/05/pipelines-of-featureunions-of-pipelines.html) for how this would help people."},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/92532025","html_url":"https://github.com/scikit-learn/scikit-learn/pull/3886#issuecomment-92532025","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/3886","id":92532025,"user":{"login":"jnothman","id":78827,"avatar_url":"https://avatars.githubusercontent.com/u/78827?v=3","gravatar_id":"","url":"https://api.github.com/users/jnothman","html_url":"https://github.com/jnothman","followers_url":"https://api.github.com/users/jnothman/followers","following_url":"https://api.github.com/users/jnothman/following{/other_user}","gists_url":"https://api.github.com/users/jnothman/gists{/gist_id}","starred_url":"https://api.github.com/users/jnothman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnothman/subscriptions","organizations_url":"https://api.github.com/users/jnothman/orgs","repos_url":"https://api.github.com/users/jnothman/repos","events_url":"https://api.github.com/users/jnothman/events{/privacy}","received_events_url":"https://api.github.com/users/jnothman/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T23:23:32Z","updated_at":"2015-04-13T23:23:32Z","body":"That would be nice, except for the need to support other search mechanisms,\nand that even ParameterGrid can be more expressive than that (i.e. lists of\ndicts).\n\nOn 14 April 2015 at 09:16, Andreas Mueller <notifications@github.com> wrote:\n\n>  I wrote a wrapper that recreates the pipeline during fit. You have to\n> give a function that creates the aliases of the parameters in the\n> param_grid to the actual parameters. That is clearly not the solution for\n> sklearn.\n>\n> What I saw some people propose is to attach the parameters to try more\n> directly to the estimator, instead of specifying them in GridSearchCV.\n> So you'd do something like:\n>\n> svm = SVC()\n> svm.grid_params = {'C' : np.logspace(10, 10)}\n> grid = GridSearchCV(make_pipeline(StandardScaler(), svm))\n>\n>  —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/scikit-learn/scikit-learn/pull/3886#issuecomment-92531068>\n> .\n>\n"}}