Sample.m missing while using create_balanced_xvalid_selectors

7 views
Skip to first unread message

Alireza

unread,
Nov 10, 2009, 6:40:58 AM11/10/09
to Princeton MVPA Toolbox for Matlab
Hello,

The sample.m has been missed in MVPA toolbox and that's why
create_balanced_xvalid_selectors crashed while I used it:

??? Undefined function or method 'sample' for input arguments of type
'double'.

Error in ==> balance_active_selector at 47
remove_idx = sample(cur_cond_idx,cur_surplus);

Error in ==> create_balanced_xvalid_selectors at 46
trnsel_bal = balance_active_selector(conds,trnsel);

any idea from where one can download it? is it really obligatory that
one suppose to have at leat 4 conditions to be able to run
create_balanced_xvalid_selectors ?

Thanks
Alireza


Greg Detre

unread,
Nov 10, 2009, 8:24:21 AM11/10/09
to mvpa-t...@googlegroups.com
did we forget to include sample.m in the MVPA release? if so, we'll push
out a quick release that includes it.

in the meantime, here it is as an attachment.

> is it really obligatory that
> one suppose to have at leat 4 conditions to be able to run
> create_balanced_xvalid_selectors ?

???
no, i don't think so.

g

sample.m

Garrett McGrath

unread,
Nov 10, 2009, 5:24:48 PM11/10/09
to mvpa-t...@googlegroups.com
To All,
I've updated the 1.1 release of the MVPA toolbox to include the
missing file. I've also updated the MD5 checksum to reflect that
information. It should be noted that the SVN also has this file
available in it.
-Garrett

MS Al-Rawi

unread,
Nov 11, 2009, 11:11:07 AM11/11/09
to Princeton MVPA Toolbox for Matlab
Hi ......I think the function 'statmap_glm_logic' is missing too. It
is not on the latest SVN-3242 as well (sample.m was already there).
This objective function is called by statmap_glm_multiv.

Regards
Rawi

Greg Detre

unread,
Nov 11, 2009, 11:16:04 AM11/11/09
to mvpa-t...@googlegroups.com
are you sure it's not here?

./core/preproc/statmap_glm_multiv.m

g
--


---
Greg Detre
cell: 617 642 3902
email: gr...@gregdetre.co.uk
web: http://www.princeton.edu/~gdetre/

Greg Detre

unread,
Nov 11, 2009, 11:18:33 AM11/11/09
to mvpa-t...@googlegroups.com
ooops. i'm sorry - i replied over-hastily.

let's see - statmap_glm_locic... i'm just hunting for that now.

g

Greg Detre

unread,
Nov 11, 2009, 11:27:42 AM11/11/09
to mvpa-t...@googlegroups.com
Ah, it was squirrelled away in David Weiss' personal scripts directory.

David, I hope you don't mind that I copied it to the SVN (in
trunk/mvpa/core/preproc rev 3243).

Rawi - I think I originally wrote this, but it looks like David
substantially modified it. Anyway, it's probably worth inspecting these
scripts (or running them on synthetic data) to check that everything
works as expected.

g

Reply all
Reply to author
Forward
0 new messages