Using glmnet with MATLAB R2016a

倖福魔咒の 提交于 2020-01-17 04:36:20

问题


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.


回答1:


I solved the problem recompiling the Fortran files. To do that I installed Visual Studio 2015, then Intel Parallel Studio XE 2016 for Fortran (the 2017 version doesn't work) and then on MATLAB terminal I used:

mex glmnetMex.F glmnet.f


来源:https://stackoverflow.com/questions/39675664/using-glmnet-with-matlab-r2016a

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!