{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/2674","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2674/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2674/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2674/events","html_url":"https://github.com/mne-tools/mne-python/issues/2674","id":120641137,"number":2674,"title":"MultiTaskLasso and GAT","user":{"login":"kingjr","id":4881164,"avatar_url":"https://avatars.githubusercontent.com/u/4881164?v=3","gravatar_id":"","url":"https://api.github.com/users/kingjr","html_url":"https://github.com/kingjr","followers_url":"https://api.github.com/users/kingjr/followers","following_url":"https://api.github.com/users/kingjr/following{/other_user}","gists_url":"https://api.github.com/users/kingjr/gists{/gist_id}","starred_url":"https://api.github.com/users/kingjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingjr/subscriptions","organizations_url":"https://api.github.com/users/kingjr/orgs","repos_url":"https://api.github.com/users/kingjr/repos","events_url":"https://api.github.com/users/kingjr/events{/privacy}","received_events_url":"https://api.github.com/users/kingjr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-06T15:37:57Z","updated_at":"2015-12-06T18:32:04Z","closed_at":null,"body":"@jona-sassenhagen @agramfort @dengemann \r\n\r\nOn my computer, the `MultiTaskLasso` from sklearn seems to be unable to run parallel predictions (fit is fine though). I haven't run an investigation yet... Do you encounter the same issue?\r\n\r\n```\r\nimport numpy as np\r\nimport mne\r\nfrom mne.datasets import sample\r\nfrom mne.decoding import GeneralizationAcrossTime\r\nfrom sklearn.preprocessing import StandardScaler\r\nfrom sklearn.pipeline import make_pipeline\r\nfrom sklearn.linear_model import MultiTaskLasso\r\nfrom sklearn.cross_validation import KFold\r\n\r\n# preproc\r\ndata_path = sample.data_path()\r\nraw_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw.fif'\r\nevents_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw-eve.fif'\r\nraw = mne.io.Raw(raw_fname, preload=True)\r\npicks = mne.pick_types(raw.info, meg=True, exclude='bads')  # Pick MEG channels\r\nevents = mne.read_events(events_fname)\r\nevent_id = {'AudL': 1, 'AudR': 2, 'VisL': 3, 'VisR': 4}\r\nepochs = mne.Epochs(raw, events, event_id, -0.050, 0.600, proj=True,\r\n                    picks=picks, baseline=None, preload=True,\r\n                    reject=dict(mag=5e-12), verbose=False)\r\n\r\n# Fit multiple conditions at once\r\nevents_side = epochs.events[:, 2] % 2\r\nevents_modality = epochs.events[:, 2] > 2\r\nY = np.vstack((events_side, events_modality)).T\r\n\r\n# GAT\r\nclf = make_pipeline(StandardScaler(), MultiTaskLasso(alpha=.01))\r\ngat = GeneralizationAcrossTime(clf=clf, cv=KFold(len(Y)), n_jobs=-1)\r\ngat.fit(epochs, y=Y)\r\ngat.predict(epochs)  # seems to run a single core, and thus takes for ever\r\n``` "},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/162334920","html_url":"https://github.com/mne-tools/mne-python/issues/2674#issuecomment-162334920","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2674","id":162334920,"user":{"login":"kingjr","id":4881164,"avatar_url":"https://avatars.githubusercontent.com/u/4881164?v=3","gravatar_id":"","url":"https://api.github.com/users/kingjr","html_url":"https://github.com/kingjr","followers_url":"https://api.github.com/users/kingjr/followers","following_url":"https://api.github.com/users/kingjr/following{/other_user}","gists_url":"https://api.github.com/users/kingjr/gists{/gist_id}","starred_url":"https://api.github.com/users/kingjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingjr/subscriptions","organizations_url":"https://api.github.com/users/kingjr/orgs","repos_url":"https://api.github.com/users/kingjr/repos","events_url":"https://api.github.com/users/kingjr/events{/privacy}","received_events_url":"https://api.github.com/users/kingjr/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T18:32:04Z","updated_at":"2015-12-06T18:32:04Z","body":"Arg, updating it through conda made the problem reappear.. And removing or reinstalling sklearn through pip doesn't change anything anymore. I'll re-open it until I find the fix."}}