有没有一个函数可以查看 rds 文件的详细信息?

huangapple go评论55阅读模式
英文:

Is there a function that lets you view the details of an rds file?

问题

在R中有没有一个函数可以查看保存的模型的详细信息?

英文:

I am using an R package that saves a model as an rds file. Is there a function in R to see the details of the saved model?

答案1

得分: 1

RDS文件是通用的对象容器。您可以在其中存储任何东西:数据、模型、函数等。在实际加载之前,它们不知道内部包含什么。因此,在将其加载到您的R工作空间之前,无法从RDS文件中提取特定的模型参数。

根据您使用的建模函数,您可能无法恢复生成模型所使用的确切参数。并非所有函数都将所有内容保存在输出中。

英文:

RDS files are generic object containers. You can store anything in them: data, models, functions, etc. They are unaware of what's inside until you actually load it up. So there would be no way to extract specific model parameters from the RDS file until you call readRDS to load it into your R workspace.

And depending on the modeling function you use, you may not necessarily be able to recover the exact parameters used to generate the model. Not all function save everything in the output.

huangapple
  • 本文由 发表于 2023年7月13日 22:47:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76680718.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定