" get_int_parms"不适用于包"glmnet"的.Fortran(). [英] "get_int_parms" not available for .Fortran() for package "glmnet"

查看:191
本文介绍了" get_int_parms"不适用于包"glmnet"的.Fortran().的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一个简单的套索模型与最新的glmnet软件包一起安装.

I am trying to fit a simple lasso model with the latest glmnet package.

我已读取一个csv文件,并将所有数据存储为列表"或矩阵.

I have read in a csv-file and have all my data stored as a "list" or matrix.

我尝试遵循此指南进行实施: https://www.r-bloggers.com/ridge-regression -and-the-lasso/

I tried to follow this guide for the implementation: https://www.r-bloggers.com/ridge-regression-and-the-lasso/

但是当我跑步时:

lasso.mod <- glmnet(b[,2:22], b$power, alpha=1)

我收到以下错误:

.Fortran("get_int_parms",fdev = double(1),eps = double(1), :"get_int_parms"不适用于包"glmnet"的.Fortran()

Error in .Fortran("get_int_parms", fdev = double(1), eps = double(1), : "get_int_parms" not available for .Fortran() for package "glmnet"

在我的输入中:

B只是一个具有23列和大约100000行的矩阵.第一个要点是我想作为解释变量.我在谷歌上搜索了一下,但没有发现太多关于这种类型的错误的信息.有人知道怎么了吗?

B is just a matrix with 23 columns and around 100000 rows. The first colunmn is what I want to have as my explanatory variable. I googled around a bit but did not find so much on this type of error. Anyone knows what is wrong?

推荐答案

最近遇到了同样的错误.

Recently got the same error.

我重新安装了glmnet软件包,并且一切正常.

I reinstalled the glmnet package and everything worked fine.

这篇关于&quot; get_int_parms&quot;不适用于包"glmnet"的.Fortran().的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆