• 大小: 95KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: Matlab
  • 标签: softmax  工具包  

资源简介

用提取的特征训练softmax分类器时所需要的matlab工具包

资源截图

代码片段和文件信息

clear all

nInst = 250;
nVars = 10;
X = randn(nInstnVars);
w = randn(nVars1);
y = sign(X*w + randn(nInst1));

wTest = randn(nVars1);

fprintf(‘Testing gradient using forward-differencing...\n‘);
order = 1;
derivativeCheck(@LogisticLosswTestorder1Xy);

fprintf(‘Testing gradient using central-differencing...\n‘);
derivativeCheck(@LogisticLosswTestorder2Xy);

fprintf(‘Testing gradient using complex-step derivative...\n‘);
derivativeCheck(@LogisticLosswTestorder3Xy);

fprintf(‘\n\n\n‘);
pause

fprintf(‘Testing Hessian using forward-differencing\n‘);
order = 2;
derivativeCheck(@LogisticLosswTestorder1Xy);

fprintf(‘Testing Hessian using central-differencing\n‘);
order = 2;
derivativeCheck(@LogisticLosswTestorder2Xy);

fprintf(‘Testing Hessian using complex-step derivative\n‘);
order = 2;
derivativeCheck(@LogisticLosswTestorder3Xy);

fprintf(‘\n\n\n‘);
pause

fprintf(‘Testing gradient using fastDerivativeCheck...\n‘);
order = 1;
fastDerivativeCheck(@LogisticLosswTestorder1Xy);
fastDerivativeCheck(@LogisticLosswTestorder2Xy);
fastDerivativeCheck(@LogisticLosswTestorder3Xy);

fprintf(‘\n\n\n‘);
pause

fprintf(‘Testing Hessian using fastDerivativeCheck...\n‘);
order = 2;
fastDerivativeCheck(@LogisticLosswTestorder1Xy);
fastDerivativeCheck(@LogisticLosswTestorder2Xy);
fastDerivativeCheck(@LogisticLosswTestorder3Xy);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-03-21 02:14  minFunc-master\
     文件        1794  2013-03-21 02:14  minFunc-master\README.md
     目录           0  2013-03-21 02:14  minFunc-master\autoDif\
     文件        1319  2013-03-21 02:14  minFunc-master\autoDif\autoGrad.m
     文件        1184  2013-03-21 02:14  minFunc-master\autoDif\autoHess.m
     文件         371  2013-03-21 02:14  minFunc-master\autoDif\autoHv.m
     文件        1338  2013-03-21 02:14  minFunc-master\autoDif\autoTensor.m
     文件        1034  2013-03-21 02:14  minFunc-master\autoDif\derivativeCheck.m
     文件        1704  2013-03-21 02:14  minFunc-master\autoDif\fastDerivativeCheck.m
     文件        1392  2013-03-21 02:14  minFunc-master\example_derivativeCheck.m
     文件        2421  2013-03-21 02:14  minFunc-master\example_minFunc.m
     目录           0  2013-03-21 02:14  minFunc-master\logisticExample\
     文件         417  2013-03-21 02:14  minFunc-master\logisticExample\LogisticDiagPrecond.m
     文件         216  2013-03-21 02:14  minFunc-master\logisticExample\LogisticHv.m
     文件         709  2013-03-21 02:14  minFunc-master\logisticExample\LogisticLoss.m
     文件        2449  2013-03-21 02:14  minFunc-master\logisticExample\example_minFunc_LR.m
     文件         228  2013-03-21 02:14  minFunc-master\logisticExample\mylogsumexp.m
     文件         266  2013-03-21 02:14  minFunc-master\mexAll.m
     目录           0  2013-03-21 02:14  minFunc-master\minFunc\
     文件        4533  2013-03-21 02:14  minFunc-master\minFunc\ArmijoBacktrack.m
     文件       10590  2013-03-21 02:14  minFunc-master\minFunc\WolfeLineSearch.m
     目录           0  2013-03-21 02:14  minFunc-master\minFunc\compiled\
     文件        8264  2013-03-21 02:14  minFunc-master\minFunc\compiled\lbfgsAddC.mexa64
     文件        8624  2013-03-21 02:14  minFunc-master\minFunc\compiled\lbfgsAddC.mexmaci64
     文件        7168  2013-03-21 02:14  minFunc-master\minFunc\compiled\lbfgsAddC.mexw64
     文件        7707  2013-03-21 02:14  minFunc-master\minFunc\compiled\lbfgsC.mexa64
     文件        7733  2013-03-21 02:14  minFunc-master\minFunc\compiled\lbfgsC.mexglx
     文件        9500  2013-03-21 02:14  minFunc-master\minFunc\compiled\lbfgsC.mexmac
     文件       12660  2013-03-21 02:14  minFunc-master\minFunc\compiled\lbfgsC.mexmaci
     文件        8632  2013-03-21 02:14  minFunc-master\minFunc\compiled\lbfgsC.mexmaci64
     文件        7168  2013-03-21 02:14  minFunc-master\minFunc\compiled\lbfgsC.mexw32
............此处省略33个文件信息

评论

共有 条评论