complete separation - convergence issue in GLMs - lassoGLM

조회 수: 1 (최근 30일)
Matthias
Matthias 2016년 7월 28일
How can I deal with convergence issue in GLM?
I tried to use penalized logistic regression. But instead of plots like in the documentation lassoglm
I get the plots below (code also below). Looks like lambda should be close to zero.
I guess this is the convergence issue I hoped to avoid using penalized GLM. My question: why does penalization here not work and how can I make working it?
Plot 1:
Plot 2:
load('GroundTruth.mat') % attached to question
Ybool = label;
X = features;
[B,FitInfo] = lassoglm(X,Ybool, 'binomial',...
'NumLambda',25,'CV',10);
% figure
lassoPlot(B,FitInfo,'PlotType','CV');
% figure
lassoPlot(B,FitInfo,'PlotType','Lambda','XScale','log')

답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by