Error using libsvm with tutorial_easy

37 views
Skip to first unread message

Marilyn Cyr

unread,
Sep 30, 2015, 1:01:32 PM9/30/15
to Princeton MVPA Toolbox for Matlab
Hi,

I'm trying to use libsvm to classify the data from tutorial_easy, using the train_libsvm and test_libsvm functions shared in a previous tread (https://groups.google.com/forum/#!topic/mvpa-toolbox/iT9JIgE0duQ), but encounter the following error:

Cell contents reference from a non-cell array object.

Error in propval (line 120)
  if isempty(user_propvals{1})

Error in train_libsvm (line 83)
args = propval(in_args,defaults);

Error in cross_validation (line 192)
  scratchpad = train_funct_hand(trainpats,traintargs,class_args,cv_args);



If I change the class_args in tutorial_easy to be cellstr instead of string, I run into this error instead:

Error using cross_validation>sanity_check (line 277)
Training or testing function names have to be strings

Error in cross_validation (line 139)
sanity_check(class_args);


I read in a previous tread that there might be back compatibility issues with the propval function. Is this why I run into this error? Does anyone know how I could solve the problem?

Thank you for your input. It's much appreciated!

Best,
Marilyn
Reply all
Reply to author
Forward
0 new messages