Using glmnet with Matlab R2016a

I'm trying to use glmnet vignette in Matlab R2016a on windows 10 (64bit). I downloaded the version from here. Every time that I try to use a function (like 'cvglmnet') matlab crashes.
The glmnet version for Matlab was tested only on Matlab 2013b (64-bit), but I wanted to know if someone was able to use it on other versions of matlab and how to do that. I think the problem is the mex file that maybe should be recompiled since the error on the matlab crash says
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.
but I don't know how to do that.

3 comentarios

Wenyu Chen
Wenyu Chen el 9 de Abr. de 2017
I get this problem too. I tried 2015a and 2015b and they both had the same problem. On my computer (and on a cluster I am using, too) glmnet runs in most of the time, and crushes on some specific cases, usually on larger data sets. I have not yet found a way to fix it.
J Dewar
J Dewar el 22 de Abr. de 2017
I was trying a 1-D example, and found this on 2016b.
I was inputting a row (1 point, n dimensions) instead of column (n points, 1 dimension); there was zero variance for 1 point and glmnet seg faulted.
Make sure your matrix is (point)x(dimension), as input for glmnet.
longfei_Roger
longfei_Roger el 7 de En. de 2018
me too!how to fix it?Thanks for you help

Iniciar sesión para comentar.

Respuestas (1)

David Raunig
David Raunig el 21 de Mzo. de 2018

0 votos

The problem is with glmnetMEX. This was compiled for Windows 7 and needs to use the source code to compile on Windows 10. I have not tried this yet but believe that should work.

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Sept. de 2016

Respondida:

el 21 de Mzo. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by