{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/2189","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2189/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2189/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2189/events","html_url":"https://github.com/mne-tools/mne-python/issues/2189","id":85638889,"number":2189,"title":"I/O for time gen class","user":{"login":"choldgraf","id":1839645,"avatar_url":"https://avatars.githubusercontent.com/u/1839645?v=3","gravatar_id":"","url":"https://api.github.com/users/choldgraf","html_url":"https://github.com/choldgraf","followers_url":"https://api.github.com/users/choldgraf/followers","following_url":"https://api.github.com/users/choldgraf/following{/other_user}","gists_url":"https://api.github.com/users/choldgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/choldgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choldgraf/subscriptions","organizations_url":"https://api.github.com/users/choldgraf/orgs","repos_url":"https://api.github.com/users/choldgraf/repos","events_url":"https://api.github.com/users/choldgraf/events{/privacy}","received_events_url":"https://api.github.com/users/choldgraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-06-05T21:43:30Z","updated_at":"2015-12-22T19:50:37Z","closed_at":null,"body":"I've been running some time gen models, and a tricky problem I've come across is how to deal with I/O. The model fitting (well, the predictions actually) can take a really long time, so I'd prefer to have one script do all the model fitting, and another script that looks at the results.\r\n\r\nHowever, right now I don't have a good system for reading / writing from disk. I am wondering if it'd be worth implementing something similar to AverageTFR, which basically just takes attributes, writes them in a dictionary to an h5 file, and then reads them back from memory in a similar manner.\r\n\r\nThe main challenge I see to this would be that people may have arbitrary sklearn objects in the attribute for models. I think the h5 code will serialize this which is sub-optimal but at least shouldn't break. What do you guys think?"},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/166714273","html_url":"https://github.com/mne-tools/mne-python/issues/2189#issuecomment-166714273","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2189","id":166714273,"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-22T19:50:37Z","updated_at":"2015-12-22T19:50:37Z","body":"I guess we can start easy with a blind pickling and we'll make subsequent\nPR to improve it later. Or would this create incompatibility issues ?\n\nOn Tuesday, 22 December 2015, Chris Holdgraf <notifications@github.com>\nwrote:\n\n> Yep agreed - this is why I think it's important to keep the model parameter\n> information instead of just keeping the scores etc. I'm +1 for doing this,\n> just need to decide whether to explicitly handle those parameters or just\n> blindly pickle it\n>\n> On Tue, Dec 22, 2015 at 1:41 PM jona-sassenhagen <notifications@github.com\n> <javascript:_e(%7B%7D,'cvml','notifications@github.com');>>\n> wrote:\n>\n> > If we had a mechanism for figuring out the field holding the feature\n> > importance, we could also use that to plot model topomaps.\n> >\n> > —\n> > Reply to this email directly or view it on GitHub\n> > <\n> https://github.com/mne-tools/mne-python/issues/2189#issuecomment-166712423\n> >\n> > .\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/mne-tools/mne-python/issues/2189#issuecomment-166713631>\n> .\n>\n"}}