Using glmnet with Matlab R2016a
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
J Dewar
2017 年 4 月 22 日
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.
回答 (1 件)
David Raunig
2018 年 3 月 21 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!