regex01.m

来自「SparseLab is a Matlab software package d」· M 代码 · 共 31 行

M
31
字号
function RegEx01(X,y,b)
% Plots results for Forward Stepwise Algorithm against the true
% underlying model.

%Find sparse solutions, with true model unknown

[bhatstep, activationHist, tHist]=SolveStepwiseFDR(X,y,0);

% Plot Results

figure
plot(1:200,bhatstep,'-');
hold on
plot(1:200,b,'.r')
title('Forward Stepwise Regression Solution')
xlabel('Variable Number')
ylabel('Coefficient Value')
legend('Estimated Coefficient Values','True Coefficient Values')

%
% Copyright (c) 2006. Victoria Stodden
%

%
% Part of SparseLab Version:100
% Created Tuesday March 28, 2006
% This is Copyrighted Material
% For Copying permissions see COPYING.m
% Comments? e-mail sparselab@stanford.edu
%

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?