【问题标题】:Using glmnet with MATLAB R2016a将 glmnet 与 MATLAB R2016a 一起使用
【发布时间】:2017-02-02 04:38:14
【问题描述】:

我正在尝试在 Windows 10(64 位)上的 MATLAB R2016a 中使用 glmnet 小插图。我从here 下载了版本。每次我尝试使用函数(如cvglmnet)时,MATLAB 都会崩溃。

MATLAB 的 glmnet 版本仅在 MATLAB 2013b(64 位)上进行了测试,但我想知道是否有人能够在其他版本的 MATLAB 上使用它以及如何做到这一点。我认为问题在于可能应该重新编译的 mex 文件,因为 MATLAB 崩溃上的错误说

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.

但我不知道该怎么做。

【问题讨论】:

标签: matlab mex glmnet


【解决方案1】:

我解决了重新编译 Fortran 文件的问题。为此,我安装了 Visual Studio 2015,然后安装了 Intel Parallel Studio XE 2016 for Fortran(2017 版不起作用),然后在我使用的 MATLAB 终端上:

mex glmnetMex.F glmnet.f

【讨论】:

    猜你喜欢
    • 2019-03-17
    • 2017-11-07
    • 2016-09-27
    • 1970-01-01
    • 1970-01-01
    • 2018-07-08
    • 2017-05-31
    • 1970-01-01
    • 2014-09-11
    相关资源
    最近更新 更多