SPAMS(稀疏和字典学习)工具箱的介绍、配置和使用
来源:互联网 发布:mac os x10.10.5下载 编辑:程序博客网 时间:2024/05/16 05:21
SPAMS (SPArse Modeling Software)是一个功能强大,为解决各种稀疏估计问题的开源优化工具箱,其主页为 http://spams-devel.gforge.inria.fr/index.html。
这篇文章的内容是从我之前跟导师汇报的ppt里复制过来的,新手不擅长排版,请见谅。
如果官网打开过慢,也可以来我的资源下载里,免费下载工具箱:http://download.csdn.net/detail/y277an/9413800
零、工具箱的部分目录:
涉及到字典学习、矩阵分解、稀疏等。。。。很强大吧~还有源码可以研究。
一. 工具箱在官网的叙述:
SPAMS(SPArseModeling Software) is an optimization toolbox for solving various sparseestimation problems.It is coded in C++ with aMatlab ,Rand Python interface.
PS:官网提供了一个作者自己的参考书:J. Mairal, F.Bach and J. Ponce. 《SparseModeling for Image and Vision Processing》,这本书里介绍了工具箱会用到的大部分理论知识。
二、官网有关下载的说明:
1). The toolbox was successfully tested withgcc-4.6, theintelcompiler version 12 and visual studio compiler 10, and the BLAS/LAPACK libraryatlas, Intel MKL and AMD ACML.
2). The best performance was obtainedusing the Intel compiler + Intel MKL under Linux. Since the toolbox was mostlytested with toolbox was mostlytested with Matlabunder Linux, please use thematlabLinux 64bits version if you want to report speed results.
3) . To use SPAMS withmatlabR2011a and later, do not forget to run the commandsetenv(‘MKL_NUM_THREADS','1')before using SPAMS.
注1:目前调试的文件,均没有按照第3条所说先运行setenv…的指令,但也全部调试成功
注2:SPAMS工具箱的使用说明在download可以下载到
注3:测试的电脑是win7,64bit,安装的是Matlab版本的SPAMS。安装的编译器是vs2013旗舰版;Matlab使用的版本是2014a。(实验证明VC++6.0以及CodeBlock都无法和SPAMSv2.5配合使用)
注4:当缺少安装环境时进入下面网站下载:http://cn.mathworks.com/support/compilers/R2014a/index.html?sec=win64#n4
三、SPAMS工具箱里各文件夹的官方说明
The folder doc contains the documentation in pdf and html. build/ contains the binaryfiles, including the help for each command. test_releasecontains various matlabscripts which call the different functions of this toolbox.
注:test_release文件夹中的m文件可直接运行调试
四、SPAMS工具箱的安装和使用
1).进入matlab,首先在 matlab命令窗口输入mex-setup,关联编译器,如果是Visual Studio的话,最好是2010版本以上(官网说明推荐)。
2).compile.m、 get_architecture.m、 start_spams.m,包含不同的预处理信息,当运行的m文件中包含某些函数时,就必须预先运行这三个预处理文件,所以建议是使用SPAMS工具箱前,将这三个文件都先运行一下,然后就可以运行任意m文件了。
注:compile文件中,要按照文件中的注释改一些参数。
附:运行test_all.m文件的运算部分结果
- SPAMS(稀疏和字典学习)工具箱的介绍、配置和使用
- 使用稀疏化(字典学习)工具spams做分类
- Windows下关于稀疏编码建模工具箱SPAMS的配置
- SPAMS稀疏建模工具箱的简单使用说明
- SPAMS稀疏建模工具箱
- SPAMS稀疏建模工具箱
- SPAMS稀疏建模工具箱
- SPAMS稀疏建模工具箱
- 稀疏编码工具箱SPAMS windows下 Matlab接口配置
- matlab---SPAMS稀疏建模工具箱
- 安装Python的稀疏表示软件包SPORCO和SPAMS
- spams----稀疏建模工具箱在MATLAB下的安装编译
- 字典学习和稀疏编码
- 深度学习工具箱和Vlfeat库的配置及使用
- 深度学习工具箱和Vlfeat库的配置及使用
- 深度学习工具箱和Vlfeat库的配置及使用
- 稀疏表示(sparse representation)和字典学习(一)
- 稀疏表示(sparse representation)和字典学习
- OSX: QuickLook快速预览不工作?
- BZOJ 2096: [Poi2010]Pilots|单调队列
- An Epoll example -- server and client
- JavaScript prototype 属性
- 门外汉怎么成就咨询大单(2)——北漂18年(40)
- SPAMS(稀疏和字典学习)工具箱的介绍、配置和使用
- Excel导入→JS拼出来的Table
- poj 2513 Colored Sticks 字典树+并查集+欧拉路
- 安卓Viewpager的使用--简单的欢迎页
- BZOJ 1342: [Baltic2007]Sound静音问题|单调队列
- 用AFNetworking3.0封装网络请求
- ES6学习——迭代器(Iterators):return和throw概述
- AngularJS学习之绑定策略
- AngularJS的生命周期:complie和link