资源简介
解决L1正则化问题的一系列最新算法,可以尝试!
本人亲自测试过,好用。
压缩传感、稀疏表达方向的,都可以用。
代码片段和文件信息
% Test script for comparing fast L-1 solvers via Gaussian projections
% Copyright ?010. The Regents of the University of California (Regents).
% All Rights Reserved. Contact The Office of Technology Licensing
% UC Berkeley 2150 Shattuck Avenue Suite 510 Berkeley CA 94720-1620
% (510) 643-7201 for commercial licensing opportunities.
% Authors: Arvind Ganesh Allen Y. Yang Zihan Zhou.
% Contact: Allen Y. Yang Department of EECS University of California
% Berkeley.
% IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT INDIRECT
% SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING LOST PROFITS
% ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION EVEN IF
% REGENTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
% REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES INCLUDING BUT NOT LIMITED
% TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
% PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION IF ANY
% PROVIDED HEREUNDER IS PROVIDED “AS IS“. REGENTS HAS NO OBLIGATION TO
% PROVIDE MAINTENANCE SUPPORT UPDATES ENHANCEMENTS OR MODIFICATIONS.
clear;
clc;
close all;
RandStream.setDefaultStream(RandStream(‘mt19937ar‘‘seed‘1));
DEBUG = 1;
addpath L1Solvers
%% Classicaly Interior-Point Methods
METHOD_OMP = 0;
% Orthogonal Matching Pursuit: Implementation adapted from SparseLab
METHOD_BP = 1;
% Scott Chen et al. Atomic Decomposition By Basis Pursuit.
%% Homotopy Methods
METHOD_HOMOTOPY = 2;
% Salman Asif et al. Dynamic Updating for L1 Minimization.
% David Donoho et al. Fast solution of L1-norm minimization problems when
% the solution may be sparse.
METHOD_PFP = 3;
% Mark Plumbley Recovery of Sparse Representations by Polytope Faces
% Pursuit.
METHOD_L1LS = 4;
% S. Kim et al. A Method for Large-Scale l1-Regularized Least Squares.
%% Iterative Thresholding Methods
METHOD_SpaRSA = 5;
% Stephen Wright et al. Sparse Reconstruction by Separable Approximation.
%% Nesterov‘s Methods
METHOD_FISTA = 6;
% Amir Beck et al. A Fast Iterative Shrinkage-Thresholding Algorithm
% for Linear Inverse Problems
%% Alternating Direction Method
METHOD_ALM = 7;
%% Test parameters
l1Method = METHOD_BP;
STOPPING_GROUND_TRUTH = -1;
STOPPING_DUALITY_GAP = 1;
STOPPING_SPARSE_SUPPORT = 2;
STOPPING_objectIVE_VALUE = 3;
STOPPING_SUBGRADIENT = 4;
stoppingCriterion = STOPPING_GROUND_TRUTH;
tryCount = 10;
n = 2000;
noiseVariance = 0.01;
maxIteration = 5000;
isNonnegative = false;
lambda = 1e-2;
tolerance = 0.5;
dimensionIndex=0;
for d=300:200:1900
for sparsityRatio=0.1
dimensionIndex = dimensionIndex + 1;
k=ceil(sparsityRatio*n);
currentRunTime = 0;
currentIteration = 0;
currentL2Error = 0;
for tryIndex = 1:tryCount
% Generate Gaussian dictionary
AMatrix = randn(dn);
matrixNorm = AMatrix.‘*AMatrix;
matrixNorm = sqrt(diag(matrixNorm)).
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-06-27 15:43 l1benchmark\
文件 6148 2010-07-01 09:33 l1benchmark\.DS_Store
目录 0 2010-07-20 23:31 __MACOSX\
目录 0 2010-07-20 23:31 __MACOSX\l1benchmark\
文件 82 2010-07-01 09:33 __MACOSX\l1benchmark\._.DS_Store
文件 313 2010-07-14 14:51 l1benchmark\l1benchmark.mat
目录 0 2010-07-14 14:46 l1benchmark\L1Solvers\
文件 15364 2010-07-14 14:53 l1benchmark\L1Solvers\.DS_Store
目录 0 2010-07-20 23:31 __MACOSX\l1benchmark\L1Solvers\
文件 82 2010-07-14 14:53 __MACOSX\l1benchmark\L1Solvers\._.DS_Store
文件 5081 2010-07-13 11:03 l1benchmark\L1Solvers\SolveDALM.m
文件 348 2010-07-13 11:03 __MACOSX\l1benchmark\L1Solvers\._SolveDALM.m
文件 5072 2010-07-13 10:23 l1benchmark\L1Solvers\SolveDALM_fast.m
文件 395 2010-07-13 10:23 __MACOSX\l1benchmark\L1Solvers\._SolveDALM_fast.m
文件 6991 2010-07-13 11:04 l1benchmark\L1Solvers\SolveFISTA.m
文件 332 2010-07-13 11:04 __MACOSX\l1benchmark\L1Solvers\._SolveFISTA.m
文件 14059 2010-07-13 10:29 l1benchmark\L1Solvers\SolveHomotopy.m
文件 82 2010-07-13 10:29 __MACOSX\l1benchmark\L1Solvers\._SolveHomotopy.m
文件 9435 2010-07-13 11:03 l1benchmark\L1Solvers\SolveL1LS.m
文件 82 2010-07-13 11:03 __MACOSX\l1benchmark\L1Solvers\._SolveL1LS.m
文件 7689 2010-07-13 11:01 l1benchmark\L1Solvers\SolveOMP.m
文件 82 2010-07-13 11:01 __MACOSX\l1benchmark\L1Solvers\._SolveOMP.m
文件 5674 2010-07-13 11:03 l1benchmark\L1Solvers\SolvePALM.m
文件 346 2010-07-13 11:03 __MACOSX\l1benchmark\L1Solvers\._SolvePALM.m
文件 7781 2010-07-13 11:02 l1benchmark\L1Solvers\SolvePDIPA.m
文件 82 2010-07-13 11:02 __MACOSX\l1benchmark\L1Solvers\._SolvePDIPA.m
文件 10834 2010-07-13 11:01 l1benchmark\L1Solvers\SolvePFP.m
文件 82 2010-07-13 11:01 __MACOSX\l1benchmark\L1Solvers\._SolvePFP.m
文件 25740 2010-07-14 14:42 l1benchmark\L1Solvers\SolveSpaRSA.m
文件 82 2010-07-14 14:42 __MACOSX\l1benchmark\L1Solvers\._SolveSpaRSA.m
文件 8158 2010-07-14 14:53 l1benchmark\test_fast_l1_speed.m
............此处省略1个文件信息
- 上一篇:2016款全新金刚固件升级包
- 下一篇:wiener-维纳滤波
相关资源
- STM8L101低功耗应用
- 优酷路由宝L1刷Breed和第三方固件多拨
- STM8L15x的USART调试实验串口调试_含中断
- HDSC.HC32L110.1.0.3.pack.rar
- PCL1.8 vs2013 CMAKE源码编译教程
- 基于FPGAVerilog HDL16*16点阵显示字符
- 来自麻省理工的正则化最小二乘法讲
- IF-ELSE条件语句的翻译程序设计递归下
- dl121h.rar
- STM32L151工程模板.rar
- ESP_2dof_model1.mdl.r2012b
- LL1语法分析器 自顶向下 计算FIRST集、
-
Quartus17.1_Model10.5_Crack_Downloadli
nk.tx - zw_msl1121-6895699-IsomapR1.zip
- 论文研究 - 协会COL1A1 rs180012 SNP和纤维
- 矿井突水水源判别的ESN正则化模型
- 猪趋化因子CXCL12及受体基因CXCR4和CX
- 趋化因子CXCL12促进人早孕期蜕膜基质
- VL53L1X中文资料.pdf
- STM8L15X参考手册(中文).pdf
- 基于Tikhonov正则化的矿井通风网络测风
- 论文研究 - 基于不对称拉普拉斯分布
- DevExpressVCL19.1.2,D7___10.3可用一键安装
- devexpressVCL19.1.2版汉化文件重新修正版
- 利用靶向卵泡抑素样蛋白1FSTL1的细胞
- UNOR3 GRBL1.1f 官方固件与烧录工具
- PCL1.8 All-in-one安装包百度云地址
- 论文研究 - 非小细胞肺癌中程序性死
- PD-1/PD-L1信号通路及其抗体在淋巴瘤中
- pcl1.8.1 vs2015版百度云链接
评论
共有 条评论