[pymvpa] How to save hyperalignment mapper

Dmitrii Paniukov dmitrii.paniukov at gmail.com
Thu Nov 1 21:15:49 GMT 2018


Great! That worked fine, thanks!

On Thu, Nov 1, 2018 at 3:14 PM Beau R. Sievers <
Beau.R.Sievers.GR at 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 <dmitrii.paniukov at gmail.com>
> 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 at 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 at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-exppsy-pymvpa/attachments/20181101/7b857a3d/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list