zhongsheng-chen / pmtk3

Automatically exported from code.google.com/p/pmtk3
MIT License
0 stars 0 forks source link

calling libsvm from matlab on MAC OS X i #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
- libsvm-mat-2.9.1 does not have .mexmaci64 binaries, and running 'make'
does not create them

What steps will reproduce the problem?

 x=randn(10,20); y=randn(10,1);
 model = svmFit(x, y, 'C', 1,'kernelParam', 1, 'kernel', 'rbf'); 

What is the expected output? What do you see instead?

It should return a model struct.
Instead I get this message

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

Error in ==> svmlibFit at 89
model = libsvmTrain(y, X, options);

Error in ==> svmFit at 147
    model = fitFn(X, y, C, kernelParam, kernel, fitOptions{:});

Please use labels and text to provide additional information.

svmFit chooses which svm solver to use: it could be libsvm,
svmlight (windows only), or pure matlab (needs opt toolbox).

Currently this choice is made based on expected speed of the method,
not based on the OS the user is using. This should be improved.

Original issue reported on code.google.com by murphyk2 on 28 Feb 2011 at 7:49

GoogleCodeExporter commented 9 years ago
Moved to GitHub: https://github.com/probml/pmtk3/issues/16

Original comment by irosen on 4 Jan 2014 at 2:33