Re: [pymvpa] How to save hyperalignment mapper
Great! That worked fine, thanks! On Thu, Nov 1, 2018 at 3:14 PM Beau R. Sievers < beau.r.sievers...@dartmouth.edu> wrote: > Hi Dmitrii, > > For saving the maps, I think you can just: > > import mvpa2.suite as mv > ... > mv.h5save(output_path, slhypmaps) > > Best, > Beau > > > > > > On Nov 1, 2018, at 1:05 PM, Dmitrii Paniukov > wrote: > > > > Hello all, > > > > Does anyone know how to save a hyperalignment mapper? So it can be used > later. > > > > I'm reusing the tutorial code: > > slhyper = SearchlightHyperalignment(radius=3, featsel=0.4, > sparse_radius=3) > > slhypmaps = slhyper(ds_train) > > > > How do I save the slhypmaps, so I can use it later as in: > > ds_hyper = [h.forward(sd) for h, sd in zip(slhypmaps, ds_test)] > > ds_orig = [h.reverse(sd) for h, sd in zip(slhypmaps, ds_hyper)] > > > > By the way, am I using the reverse transform correctly? > > > > Thanks for any suggestions! > > Dmitrii > > > > ___ > > Pkg-ExpPsy-PyMVPA mailing list > > Pkg-ExpPsy-PyMVPA@alioth-lists.debian.net > > > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Falioth-lists.debian.net%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpkg-exppsy-pymvpa&data=02%7C01%7Cbeau.r.sievers.gr%40dartmouth.edu%7Cea9f301adaba4eb5c98208d6401ffb9d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C636766903445566484&sdata=4%2FKf47vq6Lbi0L1kuOUnSd5e8dkl5vy6RsJEK3XvVKk%3D&reserved=0 > > > ___ > Pkg-ExpPsy-PyMVPA mailing list > Pkg-ExpPsy-PyMVPA@alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa ___ Pkg-ExpPsy-PyMVPA mailing list Pkg-ExpPsy-PyMVPA@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa
Re: [pymvpa] How to save hyperalignment mapper
Hi Dmitrii, For saving the maps, I think you can just: import mvpa2.suite as mv ... mv.h5save(output_path, slhypmaps) Best, Beau > On Nov 1, 2018, at 1:05 PM, Dmitrii Paniukov > wrote: > > Hello all, > > Does anyone know how to save a hyperalignment mapper? So it can be used later. > > I'm reusing the tutorial code: > slhyper = SearchlightHyperalignment(radius=3, featsel=0.4, sparse_radius=3) > slhypmaps = slhyper(ds_train) > > How do I save the slhypmaps, so I can use it later as in: > ds_hyper = [h.forward(sd) for h, sd in zip(slhypmaps, ds_test)] > ds_orig = [h.reverse(sd) for h, sd in zip(slhypmaps, ds_hyper)] > > By the way, am I using the reverse transform correctly? > > Thanks for any suggestions! > Dmitrii > > ___ > Pkg-ExpPsy-PyMVPA mailing list > Pkg-ExpPsy-PyMVPA@alioth-lists.debian.net > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Falioth-lists.debian.net%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpkg-exppsy-pymvpa&data=02%7C01%7Cbeau.r.sievers.gr%40dartmouth.edu%7Cea9f301adaba4eb5c98208d6401ffb9d%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C636766903445566484&sdata=4%2FKf47vq6Lbi0L1kuOUnSd5e8dkl5vy6RsJEK3XvVKk%3D&reserved=0 ___ Pkg-ExpPsy-PyMVPA mailing list Pkg-ExpPsy-PyMVPA@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa
[pymvpa] How to save hyperalignment mapper
Hello all, Does anyone know how to save a hyperalignment mapper? So it can be used later. I'm reusing the tutorial code: slhyper = SearchlightHyperalignment(radius=3, featsel=0.4, sparse_radius=3) slhypmaps = slhyper(ds_train) How do I save the slhypmaps, so I can use it later as in: ds_hyper = [h.forward(sd) for h, sd in zip(slhypmaps, ds_test)] ds_orig = [h.reverse(sd) for h, sd in zip(slhypmaps, ds_hyper)] By the way, am I using the reverse transform correctly? Thanks for any suggestions! Dmitrii ___ Pkg-ExpPsy-PyMVPA mailing list Pkg-ExpPsy-PyMVPA@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa