LIBSVM for Octave (Mac OSX Lion)
=
I wasted a terrible amount of time trying to compile LIBSVM for Octave (Octave.app bundle) on my Macbook pro. Luckily I manage to create VM with Lion and install Octave using homebrew. After that compiling LIBSVM was quick and easy.
Although I could have done the same on my MBP I did not want to mess up my Octave installation so I created a github repo and just cloned it up.
Just add
addpath('../yourpath/matlab');
to your ~/.octaverc file and you should be ready to go.
Example
=
I have added sample data from Prof. Andrew Ng to test LIBSVM. Goto the matlab/ folder open octave and run the following code:
```matlab
>> [trainlabels, trainfeatures] = libsvmread('twofeature.txt');
>> model = svmtrain(trainlabels, trainfeatures, '-s 0 -t 0 -c 1');
```
if no complains then you are ready to use LIBSVM
##UPDATE:
The compiled library failed to run using Octave.app (3.4.2) as the one in homebrew is 3.6.4 and diff architecture.
If you want to install octave using homebrew following instructions on this link
http://wiki.octave.org/Octave_for_MacOS_X

matlab大师
- 粉丝: 2968
最新资源
- 用于Matlab和Scilab的EPICS信道接入接口_Wrapper。_EPICS Channel-Access In
- 与matlab相同_same as matlab.zip
- C经验传递函数估计(ETFE)类似于MATLAB tfestimate、pwelch和cpsd_C++ Empirica
- kernel-5.10.0-222.0.0.121.oe2203sp4.x86-64.rpm
- 电子商务平台合作协议范本最新整理版.doc
- 2019年Java实训报告总结与心得.doc
- 数据库课程设计方案报告.doc
- 新教材人教a版选择性必修第二册5.2.2导数的四则运算法则课件4.pptx
- 物联网网络层安全教材.ppt
- 读取并保存Matlab.mat文件_Read and Save Matlab .mat file for C++.zip
- CVPR中的长期相关性跟踪代码。_The codes for Long-Term Correlation Trackin
- springboot024基于SpringBoot的企业客户管理系统(源码+lw+部署文档+讲解等)
- 一个简单的计算机代数系统实现,模仿Matlab的一小部分。_A simple computer algebra syst
- kernel-5.10.0-223.0.0.122.oe2203sp4.x86-64.rpm
- 基于分段仿射线性Mumford-Shah模型(也称为仿射线性Potts模型)的图像分割(color_gray_multi
- 某服装网站策划方案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


