vedaldi / svm-struct-matlab

A MATLAB wrapper of SVM^struct
http://www.vlfeat.org/~vedaldi/code/svm-struct-matlab.html
Other
55 stars 47 forks source link

Request to update comments svm_struct_learn_mex.c #2

Open escorciav opened 11 years ago

escorciav commented 11 years ago

Hi, I'm working in Linux Fedora 18 with MATLAB R2011b and GCC 4.6. When I tried to compile the code I got this error:

svm_struct_learn_mex.c: In function ‘mexFunction’: svm_struct_learn_mex.c:108:3: error: expected expression before ‘/’ token svm_struct_learn_mex.c:188:3: error: expected expression before ‘/’ token

mex: compile of ' "svm_struct_learn_mex.c"' failed.

I replaced the comment in the line 108 and 188 with /* .... */

Currently, I can compile the mex-files succesfully.

rnsandeep commented 10 years ago

which options should I use for implementing another loss function ( hinge loss) instead of default zero-one loss. learning options. -l [0..] -> Loss function to use. 0: zero/one loss ?: see below in application specific options (default 0)