MVPA-Light icon indicating copy to clipboard operation
MVPA-Light copied to clipboard

mv_classify cannot generalize across time with neighbours

Open nastarandarjani opened this issue 2 years ago • 1 comments

Hi How can I classify and generalize across time with 3 neighbours? mv_classify cannot do that and asserts 'Searchlight and generalization are currently not supported simultaneously'.

nastarandarjani avatar Apr 18 '22 13:04 nastarandarjani

Hi, the problem that for performance reasons MVPA Light reshapes the multi-dimensional array when doing generalization (t avoid looping over the second dimension). This is easily doable without neighbours, with neighbours you essentially need a double loop (one for train, one for test).

It would be ugly to include it in the current mv_classify code so I have to think about how to do it. For now I'm afraid you have to do the double loop yourself and do the train/test manually.

treder avatar Apr 19 '22 13:04 treder